/* Praxelos public site — system fonts only, no external assets */

:root {
  --graphite: #1c211e;
  --graphite-lift: #232a26;
  --cream: #f3f0e7;
  --lilac: #e6ddf1;
  --lime: #d9f66b;

  /* Dark-section accents (set to cream/--cream-muted to revert per token) */
  --accent-hero-serif: #e6ddf1;
  --accent-label: #d9f66b;
  --accent-label-footer: rgb(217 246 107 / 0.82);
  --accent-focus-dark: #d9f66b;
  --accent-footer-provider: #e6ddf1;
  --accent-footer-biotech: #d9f66b;
  --accent-wordmark: #d9f66b;
  --accent-footer-wordmark: var(--accent-wordmark);
  --accent-hero-heading: #e6ddf1;

  --graphite-hero-surface: radial-gradient(
    120% 85% at 50% -15%,
    var(--graphite-lift) 0%,
    var(--graphite) 52%
  );

  --cream-muted: rgb(243 240 231 / 0.7);
  --cream-serif: rgb(243 240 231 / 0.78);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --font-serif: ui-serif, "New York", "Times New Roman", Times, serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono",
    Menlo, Monaco, Consolas, monospace;

  --shell-x: clamp(1.5rem, 4.2vw, 2rem);
  --space-section-y: clamp(2.5rem, 8vw, 4rem);
  --hero-pad-y: clamp(3rem, 10vw, 5rem);
  --hero-pad-y-wide: clamp(6rem, 10vw, 8.75rem);
  --measure: 60ch;
  --products-break: 56.25rem; /* 900px */
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--graphite);
  background: var(--graphite);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.shell-x {
  padding-left: var(--shell-x);
  padding-right: var(--shell-x);
}

.wordmark {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--cream);
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark--in-hero {
  display: none;
}

.page-home .site-header--compact .wordmark,
.page-home .wordmark--in-hero {
  color: var(--accent-wordmark);
}

.hero .heading-sub {
  color: var(--accent-hero-heading);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.eyebrow--muted {
  color: var(--cream-muted);
}

.heading-display {
  margin: 0 0 1.25rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-measure {
  max-width: var(--measure);
  container-type: inline-size;
  container-name: hero-measure;
}

/* Mobile / stacked hero: container-width H1 (desktop overrides at 900px) */
.heading-display .line-sans {
  display: block;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.05;
  font-size: clamp(1.4375rem, 11cqw, 3.5rem);
  white-space: nowrap;
  max-width: 100%;
}

.heading-display .line-serif {
  display: block;
  margin-top: 0.18em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(1.4375rem, 11cqw, 3.5rem);
  white-space: normal;
}

.surface-graphite .heading-display .line-serif {
  color: var(--accent-hero-serif);
}

.heading-section {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 9.5vw, 2.625rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.heading-section .line-serif {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  margin-top: 0.12em;
}

.heading-sub {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-secondary {
  color: var(--cream-muted);
}

.text-bold-list {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* Single interactive target: label + SVG arrow inside one <a> (reuse for FE02+) */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.45;
  text-decoration: none;
  letter-spacing: -0.01em;
  background: transparent;
  border: 0;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.link-cta:hover,
.link-cta:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 56.24rem) {
  .link-cta {
    min-height: 44px;
    padding-block: max(0px, calc((44px - 1lh) / 2));
  }
}

.link-arrow {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.05em;
  height: 1.05em;
  line-height: 0;
  pointer-events: none;
}

.link-arrow__svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Graphite sections */
.surface-graphite {
  background-color: var(--graphite);
  color: var(--cream);
}

.surface-graphite a:focus-visible {
  outline-color: var(--accent-focus-dark);
}

.hero .eyebrow.built-for {
  color: var(--accent-label);
}

.container-measure {
  max-width: var(--measure);
  padding-left: var(--shell-x);
  padding-right: var(--shell-x);
}

.site-header {
  padding-top: clamp(1.5rem, 5vw, 2.25rem);
  padding-bottom: 0.25rem;
}

body.page-home {
  color: var(--cream);
  background-color: var(--graphite);
  background-image: var(--graphite-hero-surface);
  background-repeat: no-repeat;
  background-size: 100% clamp(40rem, 95vh, 75rem);
}

.page-home .site-header--compact {
  background-color: transparent;
  background-image: none;
}

@media (max-width: 56.24rem) {
  .page-home .site-header--compact {
    padding-bottom: clamp(0.75rem, 3vw, 1rem);
  }

  .page-home .hero {
    padding-top: clamp(0.75rem, 2.5vw, 1.25rem);
  }

  .hero-layout > .heading-display {
    margin-top: clamp(2rem, 7.5vw, 3rem);
  }
}

.page-home .site-header--compact {
  display: block;
}

/* Hero */
.hero {
  padding-top: var(--hero-pad-y);
  padding-bottom: var(--hero-pad-y);
}

.page-home .hero.surface-graphite {
  background-color: transparent;
  background-image: none;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.hero-measure p,
.hero-secondary p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.hero-lead {
  margin-bottom: 0;
}

.hero-secondary {
  display: flex;
  flex-direction: column;
}

.hero .heading-sub {
  margin-top: 0;
}

.hero .built-for {
  margin-top: 2rem;
}

.hero .text-bold-list {
  margin-top: 0.75rem;
}

/* Product blocks */
.products {
  display: flex;
  flex-direction: column;
}

.product-block {
  padding: var(--space-section-y) var(--shell-x);
  display: flex;
  flex-direction: column;
}

.product-block--lilac {
  background: var(--lilac);
  color: var(--graphite);
}

.product-block--lime {
  background: var(--lime);
  color: var(--graphite);
}

.product-block__inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: var(--measure);
}

.product-block p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.product-block .eyebrow {
  margin-bottom: 1rem;
  color: var(--graphite);
}

.product-block .link-cta {
  margin-top: 2rem;
}

.product-block .types-label,
.product-block .coverage-label {
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  padding-top: var(--space-section-y);
  padding-bottom: 2.5rem;
}

.site-footer.surface-graphite {
  background-color: var(--graphite);
  background-image: none;
}

.site-footer .wordmark {
  font-size: 1.0625rem;
  color: var(--accent-footer-wordmark);
}

.footer-tagline {
  margin: 0.75rem 0 2.5rem;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 28em;
  color: var(--cream-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
  margin-bottom: 3rem;
  max-width: 28rem;
}

.footer-col .eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.6875rem;
  color: var(--accent-label-footer);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.footer-col li + li {
  margin-top: 0.35rem;
}

.footer-col a {
  text-decoration: none;
  font-weight: 400;
}

.footer-col a:hover {
  text-decoration: underline;
}

.surface-graphite .footer-col a.footer-link--provider:hover,
.surface-graphite .footer-col a.footer-link--provider:focus-visible {
  color: var(--accent-footer-provider);
}

.surface-graphite .footer-col a.footer-link--biotech:hover,
.surface-graphite .footer-col a.footer-link--biotech:focus-visible {
  color: var(--accent-footer-biotech);
}

.footer-plain {
  color: var(--cream);
}

.copyright {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  color: var(--cream-muted);
}

/* Stub / inner pages */
.page-main {
  padding: 1rem var(--shell-x) var(--space-section-y);
  max-width: var(--measure);
}

.page-main .back-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.page-main .back-link:hover {
  text-decoration: underline;
}

.surface-graphite .page-main,
.surface-graphite .page-main .heading-section,
.surface-graphite .page-main p {
  color: var(--cream);
}

.surface-graphite .page-main a {
  color: var(--cream);
}

@media (min-width: 56.25rem) {
  .page-home .site-header--compact {
    display: none;
  }

  .wordmark--in-hero {
    display: inline-block;
  }

  .hero {
    padding-top: var(--hero-pad-y-wide);
    padding-bottom: var(--hero-pad-y-wide);
  }

  .hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "wordmark wordmark"
      "headline secondary"
      "lead secondary";
    column-gap: 0;
    row-gap: 0;
    align-items: start;
  }

  .wordmark--in-hero {
    grid-area: wordmark;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  }

  .hero-layout > .heading-display {
    grid-area: headline;
    padding-right: calc(var(--shell-x) / 2);
    max-width: none;
    width: 100%;
  }

  .hero-layout > .hero-lead {
    grid-area: lead;
    padding-right: calc(var(--shell-x) / 2);
    margin-top: 0;
  }

  .hero-secondary {
    grid-area: secondary;
    padding-left: calc(var(--shell-x) / 2);
    align-self: start;
    max-width: var(--measure);
  }

  .heading-display .line-sans {
    font-weight: 600;
    letter-spacing: -0.05em;
    font-size: clamp(2rem, 10.8cqw, 4.5rem);
  }

  .heading-display .line-serif {
    font-size: clamp(1.625rem, 6.65cqw, 3.1rem);
    white-space: nowrap;
  }

  .products {
    flex-direction: row;
    align-items: stretch;
  }

  .product-block {
    flex: 1 1 50%;
    min-height: 100%;
  }

  .product-block__inner {
    max-width: var(--measure);
    min-height: 100%;
  }

  .product-block .link-cta {
    margin-top: auto;
    padding-top: 2.5rem;
  }

  .site-footer .footer-grid {
    max-width: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}
