/* ------------------------------------------------------------------
   Lucidity Sciences — luciditysciences.com

   Tokens are the Lumawarp brand tokens (frontend/src/styles/tokens.css),
   with the site weighted toward Void. Spark is the accent, Plum carries
   links and labels on paper, and Pink is not used anywhere on this site.
   Structure comes from hairline rules and whitespace, not from boxed
   cards — the same language as the product.
   ------------------------------------------------------------------ */

:root {
  /* Brand palette (binding, brand guide p.10) */
  --void: #252347;
  --void-2: #47438b;
  --void-3: #7a71ed;
  --void-deep: #1b1a36;   /* header, footer: a shade below Void */
  --void-lift: #2d2a56;   /* a surface lifted off Void */
  --amethyst: #8e40e4;
  --amethyst-2: #b475ec;
  --amethyst-3: #d1aeee;
  --lilac: #d180fa;
  --plum: #5815b3;
  --spark: #eee824;
  --spark-deep: #d4ce12;
  --mint: #6bd8bb;
  --cyan: #00d7e6;

  /* Ink and surfaces */
  --paper: #ffffff;
  --paper-2: #f7f5fb;
  --ink: #252347;
  --ink-soft: #5b5880;
  --ink-faint: #8a87a8;
  --on-void: #ffffff;
  --on-void-soft: #cfcbe6;
  --on-void-faint: rgba(255, 255, 255, 0.55);
  --line: rgba(37, 35, 71, 0.16);
  --line-strong: rgba(37, 35, 71, 0.38);
  --line-on-void: rgba(255, 255, 255, 0.18);

  /* Type */
  --font-body: "Montserrat", "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-accent: "IBM Plex Sans", "Segoe UI", -apple-system, Arial, sans-serif;
  --font-logo: "Nunito", var(--font-body); /* the logo face only (brand guide p.12) */

  /* Layout */
  --radius: 2px;
  --container: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --space-section: clamp(3.5rem, 8vw, 6rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img,
svg {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--plum);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--void);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  color: inherit;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-weight: 300;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  max-width: 44ch;
}

.annotation {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--ink-soft);
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 0.9rem;
}

.prose {
  max-width: 68ch;
}

.prose p {
  margin-bottom: 1.25rem;
}

.section-head {
  max-width: 48rem;
  margin-bottom: 2.5rem;
}

.section-head p:last-child {
  margin-bottom: 0;
}

/* Display scale: the status quo's claim and its counterpoint are set big. */
.display {
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* The thesis that the next band answers ("better is better."). */
.thesis {
  max-width: 56rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-on-void);
}

.thesis .lede {
  margin-bottom: 1rem;
  color: var(--on-void-soft);
}

.thesis .display {
  margin: 0;
}


/* ------------------------------------------------------------ a11y */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--spark);
  color: var(--void);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--void-3);
  outline-offset: 2px;
}

.band--void :focus-visible,
.band--deep :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--cyan);
}

/* ------------------------------------------------------------ bands */

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.band {
  padding: var(--space-section) 0;
}

.band--void {
  background: var(--void);
  color: var(--on-void);
}

.band--deep {
  background: var(--void-deep);
  color: var(--on-void);
}

.band--paper {
  background: var(--paper);
  color: var(--ink);
}

.band--paper-2 {
  background: var(--paper-2);
  color: var(--ink);
}

.band--spark {
  background: var(--spark);
  color: var(--void);
}

.band--void + .band--void,
.band--deep + .band--void,
.band--void + .band--deep {
  border-top: 1px solid var(--line-on-void);
}

.band--void .muted,
.band--void .annotation,
.band--deep .muted {
  color: var(--on-void-soft);
}

.band--void a,
.band--deep a {
  color: var(--on-void);
  text-decoration-color: var(--spark);
}

.band--void a:hover,
.band--deep a:hover {
  color: var(--spark);
}

.band--spark a {
  color: var(--void);
  text-decoration-color: var(--void);
}

/* ----------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27, 26, 54, 0.96);
  backdrop-filter: blur(8px);
  color: var(--on-void);
  border-bottom: 1px solid var(--line-on-void);
}

.site-header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

/* The "lucidity°sciences" lockup: Nunito Semibold with the raised ring,
   the spark in the void (brand guide p.9). */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: #fff;
}

.wordmark .ring {
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  border: 0.1em solid var(--spark);
  border-radius: 50%;
  margin: 0 0.1em 0 0.14em;
  transform: translateY(-0.62em);
}

.wordmark--paper {
  color: var(--void);
}

.wordmark--paper:hover {
  color: var(--void);
}

.wordmark--paper .ring {
  border-color: var(--plum);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--on-void-soft);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--spark);
}

.nav-toggle {
  display: none;
  font: 600 0.9rem var(--font-body);
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.nav-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--void-deep);
    border-bottom: 1px solid var(--line-on-void);
    padding: 0.25rem var(--gutter) 1.25rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line-on-void);
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--line-on-void);
    color: var(--spark);
  }
}

/* ---------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: 600 0.95rem/1 var(--font-body);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* A button is never underlined, whatever band it sits in. */
.band .btn,
.band .btn:hover {
  text-decoration: none;
}

.btn.btn--sm {
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
}

/* Void on Spark: an approved pair (brand guide p.11). */
.btn.btn--spark {
  background: var(--spark);
  color: var(--void);
  border-color: var(--spark);
}

.btn.btn--spark:hover {
  background: var(--spark-deep);
  border-color: var(--spark-deep);
  color: var(--void);
}

.btn.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: transparent;
}

.btn.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  color: #fff;
}

.btn.btn--void {
  background: var(--void);
  color: #fff;
  border-color: var(--void);
}

.btn.btn--void:hover {
  background: var(--void-2);
  border-color: var(--void-2);
  color: #fff;
}

.btn.btn--outline {
  color: var(--void);
  border-color: var(--void);
  background: transparent;
}

.btn.btn--outline:hover {
  background: var(--void);
  color: #fff;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
}

/* ------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 7.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem 4rem;
  align-items: center;
}

/* The current-offering panel: the company on the left, the product on the right. */
.hero__panel {
  border: 1px solid var(--line-on-void);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 1.75rem;
}

.hero__panel-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--on-void-soft);
}

.hero__panel-logo {
  width: min(100%, 15rem);
  height: auto;
  margin-bottom: 1.25rem;
}

.hero__panel p {
  color: var(--on-void-soft);
}

.hero__panel .actions {
  margin-top: 1.25rem;
}

.hero__panel-next {
  margin: 1.5rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-on-void);
  font-size: 0.95rem;
}

.hero__panel-next a {
  color: #fff;
}

section[id] {
  scroll-margin-top: 5rem;
}

.hero .lede {
  margin-top: 1.25rem;
  color: var(--on-void-soft);
}

.u-spark {
  text-decoration: underline;
  text-decoration-color: var(--spark);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.12em;
}

.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.page-hero .lede {
  color: var(--on-void-soft);
}

/* The "Lumawarp by Lucidity Sciences" lockup that opens the product page. */
.product-mark {
  width: min(100%, 26rem);
  height: auto;
  margin-bottom: 2rem;
}

@media (max-width: 820px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------ grids */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem 4rem;
  align-items: center;
}

.split--top {
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 3rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.stats--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 820px) {
  .split,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .stats,
  .stats--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .stats,
  .stats--3 {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------- features */

.feature {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.band--void .feature,
.band--deep .feature {
  border-top-color: var(--line-on-void);
}

.feature h3 {
  margin-bottom: 0.5rem;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
}

.band--void .feature p {
  color: var(--on-void-soft);
}

.feature__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------ stats */

.stat {
  border-top: 2px solid var(--void);
  padding-top: 1rem;
}

.band--void .stat {
  border-top-color: rgba(255, 255, 255, 0.85);
}

.stat__num {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--plum);
  margin: 0 0 0.5rem;
}

.band--void .stat__num {
  color: var(--spark);
}

.stat__label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.band--void .stat__label {
  color: var(--on-void-soft);
}

/* ------------------------------------------------------------ lists */

.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.ticks li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.55em;
  height: 0.55em;
  border: 2px solid var(--plum);
  border-radius: 50%;
}

.band--void .ticks li::before,
.band--deep .ticks li::before {
  border-color: var(--spark);
}

/* -------------------------------------------------------- statement */

.statement {
  max-width: 54rem;
}

.statement p {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.statement__big {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.75rem 0 1.25rem;
}

/* ----------------------------------------------------------- offers */

.offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 3rem;
  border-top: 1px solid var(--line);
}

.offer {
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.offer .feature__icon {
  margin-bottom: 1.25rem;
}

.offer .ticks {
  flex: 1;
}

.offer__link {
  align-self: flex-start;
  font-weight: 600;
  text-decoration: none;
  color: var(--void);
  border-bottom: 2px solid var(--spark);
  padding-bottom: 0.1rem;
}

.offer__link:hover {
  color: var(--plum);
  border-bottom-color: var(--plum);
}

@media (max-width: 820px) {
  .offers {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------- backers */

.band--void h3 + .backers {
  margin-top: 0.25rem;
}

.backers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}

.brandmark {
  width: min(100%, 22rem);
  margin-bottom: 1.75rem;
}

.address {
  font-style: normal;
  line-height: 1.7;
}

/* ------------------------------------------------------------- form */

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

fieldset:disabled {
  opacity: 0.6;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--void-3);
  outline-offset: 1px;
  border-color: var(--void-2);
}

.field .hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0.4rem 0 0;
}

/* Honeypot: off-screen for people, visible to scripts. */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--void-2);
  background: var(--paper-2);
  font-size: 0.95rem;
}

.form-status[data-kind="ok"] {
  border-left-color: var(--mint);
}

.form-status[data-kind="error"] {
  border-left-color: var(--spark);
}

.topic-note {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: var(--plum);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.25rem 0.6rem;
  margin-bottom: 1.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 4rem;
  align-items: start;
}

.aside-block {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  margin-bottom: 2rem;
}

.aside-block h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--plum);
}

.aside-block p {
  margin-bottom: 0.4rem;
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ----------------------------------------------------------- footer */

.site-footer {
  background: var(--void-deep);
  color: var(--on-void-soft);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line-on-void);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--on-void-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--spark);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-on-void);
}

.footer__grid h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.9rem;
}

.footer__grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__grid li {
  margin-bottom: 0.45rem;
}

.footer__tagline {
  margin-top: 1rem;
  max-width: 32ch;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 820px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------ misc */

.center {
  text-align: center;
}

.center .actions {
  justify-content: center;
}

.error-code {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1;
  color: var(--spark);
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------- team */

.team-photo {
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
}

.team-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.team-photo figcaption {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--on-void-soft);
  margin-top: 0.75rem;
}

.band--paper .team-photo figcaption,
.band--paper-2 .team-photo figcaption {
  color: var(--ink-soft);
}

/* The brand's hand-drawn illustrations (brand guide p.13). */
.feature__illo {
  width: 160px;
  height: 150px;
  object-fit: contain;
  object-position: left bottom;
  margin-bottom: 1.25rem;
}
