/* Rexalyte public site — Myndrex design system, Rexalyte teal key.
   Tokens mirror the partner-doc template so the site, guides and app read as one identity. */
:root {
  --band-a: #00596A; --band-b: #003F4C;
  --accent: #007C91; --accent-ink: #005F70; --soft: #2A9DB0;
  --paper: #F3F7F8; --surface: #FFFFFF; --surface-2: #EAF2F4;
  --ink: #14262A; --muted: #56707A; --line: #DCE6E9;
  --amber-bg: #FFF6E5; --amber-line: #F2C879; --amber-ink: #6B4A00;
  --ok: #1E8E5A;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20,38,42,.06), 0 8px 24px rgba(20,38,42,.06);
  --maxw: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1B1E; --surface: #15252A; --surface-2: #1B2F35;
    --ink: #E8F0F2; --muted: #9DB4BB; --line: #274048;
    --amber-bg: #2E2410; --amber-line: #7A5A16; --amber-ink: #F2D38A;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F1B1E; --surface: #15252A; --surface-2: #1B2F35;
  --ink: #E8F0F2; --muted: #9DB4BB; --line: #274048;
  --amber-bg: #2E2410; --amber-line: #7A5A16; --amber-ink: #F2D38A;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; font-size: .95em; }
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--accent); margin-bottom: .6rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.25rem; border-radius: 999px;
  font-weight: 600; border: 1.5px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-light { background: #fff; color: var(--band-b); }
.btn-light:hover { background: #E6F2F5; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 1.25rem; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink); font-weight: 500; }
.nav-links a.active { color: var(--accent); }
.nav-cta { display: flex; gap: .6rem; align-items: center; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .4rem .6rem; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-cta { display: none; }
  .nav.open { flex-wrap: wrap; padding-bottom: 1rem; }
  .nav.open .nav-links { display: flex; flex-direction: column; align-items: flex-start; width: 100%; gap: .75rem; margin: .5rem 0 0; }
  .nav.open .nav-cta { display: flex; width: 100%; flex-wrap: wrap; }
}

/* Hero band */
.band { background: linear-gradient(135deg, var(--band-a), var(--band-b)); color: #fff; }
.band .eyebrow { color: #9FD8E3; }
.band h1, .band h2 { color: #fff; }
.band .lede { color: #D7EAEF; }
.hero { padding-block: clamp(3rem, 8vw, 6rem); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; aspect-ratio: 1; max-width: 100%;
  background: radial-gradient(closest-side, rgba(42,157,176,.35), transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; position: relative; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-note { margin-top: 1rem; color: #B9D9E1; font-size: .9rem; }
.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius);
  padding: 1.25rem; backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .75rem; color: #9FD8E3; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.flow li { display: grid; grid-template-columns: 28px 1fr; gap: .6rem; align-items: start; color: #E8F3F6; font-size: .95rem; }
.flow .n { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--band-b); font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
.flow .m { color: #B9D9E1; font-size: .85rem; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }

/* Cards & grids */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card h3 { margin-top: .25rem; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; margin-bottom: .9rem; }
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.check-list li { padding-left: 1.6rem; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--accent);
}
.check-list li::after {
  content: ""; position: absolute; left: .27rem; top: .62em; width: .5rem; height: .28rem;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}

/* Module catalogue */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 960px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .modules { grid-template-columns: 1fr; } }
.module { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.module h4 { font-size: 1rem; margin-bottom: .3rem; }
.module p { margin: 0; color: var(--muted); font-size: .93rem; }
.module-group { margin-bottom: 2.5rem; }
.module-group h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.module-group h3 .icon { margin: 0; width: 32px; height: 32px; border-radius: 8px; }
.module-group h3 .icon svg { width: 18px; height: 18px; }

/* Compliance strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 960px) { .strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .strip { grid-template-columns: 1fr; } }
.strip .item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.strip .item strong { display: block; color: var(--accent); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split + .split { margin-top: 4rem; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } .split.reverse > :first-child { order: 0; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.panel-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: .75rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.pill { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--accent-ink); }
.pill.ok { background: #E3F5EB; color: #14663F; }
:root[data-theme="dark"] .pill.ok { background: #143D2A; color: #8FE0B4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.ok { background: #143D2A; color: #8FE0B4; } }
.mini-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mini-table th, .mini-table td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--line); }
.mini-table th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.table-scroll { overflow-x: auto; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; align-items: stretch; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; }
.plan .name { font-size: 1.2rem; font-weight: 700; }
.plan .price { font-size: 1.6rem; font-weight: 700; margin: .5rem 0 .25rem; }
.plan .price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan .for { color: var(--muted); font-size: .93rem; min-height: 3em; }
.plan .check-list { margin: 1rem 0 1.5rem; flex: 1; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow); position: relative; }
.plan.featured::before { content: "Most labs start here"; position: absolute; top: -.8rem; left: 1.25rem; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; }
.note { background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--amber-ink); border-radius: var(--radius-sm); padding: .9rem 1.1rem; }
.note p:last-child { margin-bottom: 0; }
details.faq { border-bottom: 1px solid var(--line); padding: .9rem 0; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: .6rem 0 0; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); border-color: var(--accent); }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: .25rem; }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
@media (max-width: 560px) { .choice { grid-template-columns: 1fr; } }
.choice label { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .8rem; cursor: pointer; display: block; font-weight: 500; }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--surface-2); }
.choice input { margin-right: .4rem; }
.form-status { border-radius: var(--radius-sm); padding: .9rem 1.1rem; }
.form-status.ok { background: #E3F5EB; color: #14663F; border: 1px solid #A9DEC1; }
.form-status.err { background: #FDECEC; color: #8A1F1F; border: 1px solid #F0B4B4; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* CTA band */
.cta { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-inner h2 { margin-bottom: .25rem; }
.cta-inner p { margin: 0; color: #D7EAEF; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; color: var(--muted); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* Prose pages (privacy) */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
