/* Lumeral Labs: one stylesheet for the whole site. Light and dark follow the visitor's system setting. */
:root {
  --paper: #f6f8f5;
  --ink: #16302c;
  --muted: #56685f;
  --line: #dce3dd;
  --lamp: #f0b23e;
  --bubble-in: #ffffff;
  --bubble-out: #d9f2df;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1a18;
    --ink: #e7efea;
    --muted: #9db0a7;
    --line: #24352f;
    --bubble-in: #182724;
    --bubble-out: #1e4032;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 2rem; } }

.top { display: flex; justify-content: space-between; align-items: baseline; padding: 1.5rem 0; }
.wordmark { font: 700 1.25rem/1 var(--display); letter-spacing: -0.01em; text-decoration: none; }
.top nav a { color: var(--muted); margin-left: 1.25rem; }

/* Hero: the name and one sentence on the left, Agendia answering a patient on the right. */
.hero { display: grid; gap: 3rem; padding: 3rem 0 4rem; align-items: center; }
@media (min-width: 56rem) { .hero { grid-template-columns: 1.1fr 1fr; padding: 5rem 0 6rem; } }
.hero h1 {
  font: 700 clamp(3rem, 9vw, 6rem)/0.95 var(--display);
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
}
.hero .lede { font-size: 1.25rem; line-height: 1.5; max-width: 32rem; margin: 0; color: var(--muted); }

.chat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--paper) 85%, var(--line));
  font-size: 0.975rem;
}
/* The one bold gesture: lamplight falling on the conversation. */
.chat::before {
  content: "";
  position: absolute;
  inset: -3rem -2rem auto auto;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--lamp) 45%, transparent), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.chat .who { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.25rem; }
.msg {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border-radius: 0.9rem;
  background: var(--bubble-in);
  border: 1px solid var(--line);
  margin: 0;
}
.msg.out { align-self: flex-end; background: var(--bubble-out); border-color: transparent; border-bottom-right-radius: 0.25rem; }
.msg.in { border-bottom-left-radius: 0.25rem; }
.slots { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.slots span { border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.9rem; }

@media (prefers-reduced-motion: no-preference) {
  .msg { animation: appear 0.4s ease-out both; }
  /* Children of .chat: 1 is the label, 2-5 the bubbles in conversation order. */
  .msg:nth-child(3) { animation-delay: 0.8s; }
  .msg:nth-child(4) { animation-delay: 1.6s; }
  .msg:nth-child(5) { animation-delay: 2.4s; }
}
@keyframes appear { from { opacity: 0; transform: translateY(0.4rem); } to { opacity: 1; transform: none; } }

/* Body sections: one readable column, left aligned. */
section { border-top: 1px solid var(--line); padding: 3.5rem 0; }
section h2 { font: 700 clamp(1.6rem, 4vw, 2.25rem)/1.15 var(--display); letter-spacing: -0.02em; margin: 0 0 1rem; max-width: 40rem; }
section p, section li { max-width: 40rem; }
section ul { padding-left: 1.2rem; margin: 1rem 0 0; }
section li { margin: 0.5rem 0; }
.mail { font: 700 clamp(1.4rem, 4vw, 2rem)/1.2 var(--display); }

footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
footer a { margin-right: 1.25rem; }

/* Legal pages */
.legal { padding: 2rem 0 4rem; }
.legal h1 { font: 700 clamp(2.2rem, 6vw, 3.25rem)/1.05 var(--display); letter-spacing: -0.03em; margin: 1rem 0 0.5rem; }
.legal .updated { color: var(--muted); margin: 0 0 2.5rem; }
.legal h2 { font: 700 1.35rem/1.3 var(--display); margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { max-width: 42rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: 0.4rem 0; }
