/* Lumon Bloom marketing site — single stylesheet, mobile-first.
   Palette + tone follows docs/brand/README.md.
   No frameworks, no @import, no third-party fonts. */

:root {
  /* Patient palette (primary on the home page) */
  --peach-tint: #fff6e7;
  --peach: #ffcfa0;
  --peach-deep: #f09659;
  --terracotta: #d5743f;
  --cream: #fbf5e8;

  /* Gold core (through-line) */
  --gold: #e89f4a;
  --gold-soft: #ffdc8c;

  /* Staff palette (used for the Staff card + contrast text) */
  --amethyst: #6b4fa0;
  --indigo: #3f2a75;
  --ink: #16113a;

  /* Neutrals */
  --paper: #fffaf3;
  --paper-shade: #f8ecd9;
  --rule: rgba(22, 17, 58, 0.12);
  --muted: #5b4f70;

  /* Layout */
  --radius: 14px;
  --radius-lg: 22px;
  --measure: 36rem;

  --shadow-card: 0 1px 2px rgba(22, 17, 58, 0.04),
                 0 8px 24px -12px rgba(213, 116, 63, 0.25);
  --shadow-cta: 0 6px 18px -6px rgba(232, 159, 74, 0.55);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(63, 42, 117, 0.35);
}
a:hover { text-decoration-color: var(--indigo); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 999;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

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

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand svg { color: var(--ink); width: 144px; height: auto; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { color: var(--indigo); text-decoration: underline; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding: 4rem 1.25rem 5rem;
  background:
    radial-gradient(120% 80% at 70% 0%, rgba(255, 220, 140, 0.55), transparent 60%),
    radial-gradient(80% 60% at 10% 100%, rgba(213, 116, 63, 0.18), transparent 60%),
    linear-gradient(180deg, var(--peach-tint) 0%, var(--paper) 100%);
  overflow: hidden;
}

.hero__inner {
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}

.hero__mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 18px rgba(213, 116, 63, 0.25));
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 600;
}

.hero__tag {
  font-size: clamp(1.05rem, 1vw + 0.85rem, 1.3rem);
  color: var(--muted);
  max-width: var(--measure);
  margin: 0 auto 2rem;
}

.hero__byline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
  background: rgba(255, 255, 255, 0.6);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(63, 42, 117, 0.12);
  margin-bottom: 1.5rem;
}

/* ---------------- Sections ---------------- */

main { display: block; }

.section {
  padding: 4rem 1.25rem;
}

.section--shade {
  background: var(--paper-shade);
}

.section__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.5rem;
}

.section h2 {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 600;
}

.section__lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: var(--measure);
  margin: 0 0 2.5rem;
}

/* ---------------- Product modules ---------------- */

.modules {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.module {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
}

.module--patient { border-top-color: var(--peach-deep); }
.module--staff   { border-top-color: var(--amethyst); }
.module--admin   { border-top-color: var(--gold); }

.module__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.module h3 {
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.module p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.module ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.module li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.module li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.module--staff li::before { background: var(--amethyst); }
.module--patient li::before { background: var(--peach-deep); }

/* ---------------- Positioning ("Why Bloom") ---------------- */

.why {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.why__point h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.why__point p {
  margin: 0;
  color: var(--muted);
}

/* ---------------- CTA ---------------- */

.cta {
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(232, 159, 74, 0.18), transparent 70%),
    var(--ink);
  color: var(--cream);
  text-align: center;
}

.cta h2, .cta p { color: var(--cream); }
.cta__lede { color: rgba(251, 245, 232, 0.85); }

.cta__inner { max-width: 44rem; margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow-cta);
  transition: transform 120ms ease;
  border: 0;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline-offset: 4px; }

.cta__meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(251, 245, 232, 0.7);
}

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

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 2.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: center;
}

.site-footer .brand svg { width: 120px; }

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer__legal {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------------- Long-form (support / privacy) ---------------- */

.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

.doc h1 {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.doc__updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.doc h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  border-top: 1px solid var(--rule);
  padding-top: 1.75rem;
}

.doc h3 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--ink);
}

.doc p, .doc li { color: #2d2640; }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li { margin-bottom: 0.4rem; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.doc th, .doc td {
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 0.5rem;
  text-align: left;
  vertical-align: top;
}
.doc th { color: var(--ink); font-weight: 600; }

.doc blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--paper-shade);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  color: var(--ink);
}

.doc code {
  background: var(--paper-shade);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.callout {
  background: var(--peach-tint);
  border: 1px solid rgba(213, 116, 63, 0.25);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

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

@media (min-width: 720px) {
  .modules { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; }
  .site-footer__inner {
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
  }
  .site-footer ul { justify-content: center; }
}

@media (min-width: 1024px) {
  .modules { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 5.5rem 1.5rem; }
  .hero { padding: 6rem 1.5rem 7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
