/* Nyrox showcase site. No framework, no build step: one stylesheet.
   Light by default, dark only when the toggle in the header says so
   (theme.js sets data-theme on <html>).

   Type is IBM Plex, served from this site (assets/fonts, SIL OFL 1.1) so no
   visitor request goes to a third party. Layout favours rules, lists and
   tables over boxed cards: the content is reference material and reads as
   such. */
@font-face {
  font-family: "Plex Sans";
  src: url("fonts/plex-sans.woff2") format("woff2-variations"), url("fonts/plex-sans.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --band: #f6f7f8;
  --panel: #ffffff;
  --line: #e3e5e8;
  --line-strong: #c9cdd2;
  --text: #121417;
  --muted: #4d535b;
  --dim: #6b7179;
  --brand: #0e7490;
  --brand-hover: #0b5d73;
  --brand-soft: #e6f3f6;
  --brand-ink: #ffffff;
  --hot: #c62828;
  --todo-bg: #fdf3d7;
  --todo-text: #8a4b08;
  --radius: 6px;
  --wrap: 1120px;
  --font: "Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

/* Light unless the visitor picks dark with the toggle; the system setting is ignored. */
:root[data-theme="dark"] {
  --bg: #0e1115; --band: #13171c; --panel: #161b21; --line: #242a31; --line-strong: #353d46;
  --text: #e7e9ec; --muted: #a3a9b1; --dim: #858c95;
  --brand: #46b3c9; --brand-hover: #74c8d9; --brand-soft: rgba(70, 179, 201, .12); --brand-ink: #071a1f;
  --hot: #f07167;
  --todo-bg: rgba(240, 180, 60, .14); --todo-text: #f2c66d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }
img, svg { display: block; }
h1, h2, h3 { margin: 0; color: var(--text); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.12; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: 1rem; line-height: 1.35; }
p { margin: 0; color: var(--muted); }
strong { color: var(--text); font-weight: 600; }
.mono { font-family: var(--mono); font-size: .86em; }

.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .lede, .center h2 { margin-inline: auto; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-ink);
  padding: .6rem 1rem; font-weight: 600; z-index: 100;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Header ------------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 2rem; height: 60px; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; min-width: 34px; padding: 0 .5rem;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius);
  color: var(--muted); font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .04em; cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--line); }
.icon-btn svg { width: 17px; height: 17px; }
.theme-dark { display: none; }
:root[data-theme="dark"] .theme-light { display: none; }
:root[data-theme="dark"] .theme-dark { display: block; }
@media (max-width: 960px) { .nav-links { display: none; } }
@media (max-width: 420px) { .nav-actions .btn-ghost { display: none; } }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .62rem 1.05rem; border-radius: var(--radius); font-weight: 500; font-size: .93rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.nav .btn { padding: .4rem .8rem; font-size: .86rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.cta-row.center { justify-content: center; }

/* Sections ---------------------------------------------------------------- */
section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.hero { border-top: 0; }
.band { background: var(--band); }
.lede { font-size: clamp(1rem, 1.3vw, 1.1rem); margin-top: 1rem; max-width: 44em; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { max-width: 15em; }
.hero-facts { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .3rem 0; font-size: .86rem; color: var(--dim); }
.hero-facts span:not(:last-child)::after { content: "·"; margin: 0 .7rem; color: var(--line-strong); }

/* Product panel: the lab funnel, laid out like the application's own table. */
.panel { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -12px rgba(16, 24, 40, .14); }
:root[data-theme="dark"] .panel { box-shadow: none; }
.panel-bar { display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); background: var(--band); font-size: .8rem; color: var(--dim); }
.dots { display: flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.funnel { width: 100%; border-collapse: collapse; font-size: .88rem; }
.funnel th, .funnel td { padding: .85rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.funnel th { font-weight: 400; color: var(--muted); }
.funnel .num { font-family: var(--mono); color: var(--text); text-align: right; white-space: nowrap; width: 1%; }
.funnel .bar { width: 34%; }
.funnel .w1 { --w: 100%; } .funnel .w2 { --w: 84.6%; } .funnel .w3 { --w: 10%; } .funnel .w4 { --w: 1.5%; }
.funnel .bar span { display: block; height: 6px; width: max(var(--w), 3px); background: var(--brand); border-radius: 1px; opacity: .75; }
.funnel tr.hot .num, .funnel tr.hot th { color: var(--hot); font-weight: 500; }
.funnel tr.hot .bar span { background: var(--hot); opacity: 1; }
.panel figcaption { padding: .75rem .9rem; font-size: .76rem; color: var(--dim); }

/* Screenshots of the application, real data from the demo tenant. */
.shot { margin: 3rem 0 0; }
.shot-frame { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 16px 40px -18px rgba(16, 24, 40, .18); }
:root[data-theme="dark"] .shot-frame { box-shadow: none; border-color: var(--line-strong); }
.shot img { width: 100%; height: auto; }
.shot figcaption { margin-top: .75rem; font-size: .82rem; color: var(--dim); max-width: 60em; }
.lede + .shot { margin-top: 2.2rem; }

/* Rows: term + description, separated by rules. */
.rows { margin: 0; display: grid; }
.rows > div { padding: 1.05rem 0; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 600; color: var(--text); }
.rows dd { margin: .25rem 0 0; color: var(--muted); font-size: .94rem; }

/* Three feature columns */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin-top: 2.5rem; }
@media (max-width: 900px) { .cols3 { grid-template-columns: 1fr; gap: 2rem; } }
.col-h { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: .9rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.steps li { padding: 1.4rem 1.5rem 0 0; }
.steps li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.steps h3 { margin: .35rem 0 .45rem; }
.steps p { font-size: .93rem; }
.step-n { font-family: var(--mono); font-size: .8rem; color: var(--brand); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li, .steps li + li { padding: 1.3rem 1.2rem 1.3rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Fact list (AI data handling) */
.facts { margin: 2rem 0 0; display: grid; gap: .9rem; font-size: .9rem; }
.facts > div { padding-left: .9rem; border-left: 2px solid var(--line-strong); }
.facts dt { font-weight: 600; color: var(--text); }
.facts dd { margin: .15rem 0 0; color: var(--muted); }

/* Tables */
.table-scroll { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; margin-top: 2.2rem; font-size: .93rem; min-width: 560px; }
.data th { text-align: left; font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding: 0 1rem .7rem 0; border-bottom: 1px solid var(--line-strong); }
.data td { padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.data td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }
.data td.mono { white-space: nowrap; color: var(--dim); }

/* Two-column matrix: label on the left, content on the right. */
.matrix { margin: 2.2rem 0 0; display: grid; }
.matrix > div { display: grid; grid-template-columns: minmax(12rem, 1fr) 3fr; gap: 1.5rem; padding: .95rem 0; border-top: 1px solid var(--line); }
.matrix > div:last-child { border-bottom: 1px solid var(--line); }
.matrix dt { font-weight: 600; color: var(--text); font-size: .94rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; align-self: start; }
.matrix dd { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 680px) { .matrix > div { grid-template-columns: 1fr; gap: .25rem; } }

/* Notes under a table */
.notes { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .45rem; font-size: .88rem; color: var(--dim); }
.notes li { padding-left: 1.1rem; position: relative; }
.notes li::before { content: ""; position: absolute; left: 0; top: .7em; width: .45rem; height: 1px; background: var(--dim); }

.badge {
  display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  padding: .1rem .45rem; border-radius: 3px; background: var(--brand-soft); color: var(--brand);
}
.badge.soon { background: var(--todo-bg); color: var(--todo-text); }

/* Plans: one ruled table of four columns rather than four floating cards. */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2.5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.plan { display: flex; flex-direction: column; padding: 1.5rem 1.4rem; position: relative; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan h3 { font-size: .95rem; }
.plan .price { font-size: 1.85rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin-top: .7rem; line-height: 1.1; }
.price-unit { font-size: .82rem; color: var(--dim); margin-top: .35rem; min-height: 2.6em; }
.plan ul { list-style: none; padding: 1rem 0 0; margin: 1rem 0 1.5rem; border-top: 1px solid var(--line); display: grid; gap: .55rem; font-size: .9rem; color: var(--muted); }
.plan li { padding-left: 1.1rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .62em; width: .4rem; height: .4rem; border-radius: 1px; background: var(--brand); opacity: .7; }
.plan .btn { margin-top: auto; align-self: stretch; }
@media (max-width: 980px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan:nth-child(3) { border-left: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
}
.sub-h { margin-top: 3.5rem; font-size: 1.2rem; }
.sub-h + .matrix { margin-top: 1.2rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 500; color: var(--text);
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dim); font-family: var(--mono); line-height: 1.6; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.1rem; font-size: .94rem; max-width: 46em; }

/* Contact */
.contact-mail { margin-top: 1.4rem; font-size: 1.05rem; }
.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; } }
.form label { display: grid; gap: .35rem; font-size: .86rem; font-weight: 500; color: var(--text); }
.form label span.opt { font-weight: 400; color: var(--dim); }
.form input, .form textarea {
  font: inherit; font-size: .95rem; color: var(--text); background: var(--panel);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .6rem .75rem; width: 100%;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
.form .btn { justify-self: start; }
.form-note { font-size: .8rem; color: var(--dim); }

/* Footer ------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h2 { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); margin-bottom: .8rem; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; }
.footer-about p { font-size: .86rem; margin-top: .7rem; max-width: 26em; }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; color: var(--dim); font-size: .82rem; }

/* Legal pages ------------------------------------------------------------- */
.legal { padding-top: clamp(2.5rem, 6vw, 4rem); border-top: 0; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal .updated { margin-top: .6rem; font-size: .88rem; color: var(--dim); }
.legal h2 { font-size: 1.25rem; margin: 2.4rem 0 .8rem; }
.legal h3 { margin: 1.5rem 0 .5rem; }
.legal p, .legal li { color: var(--muted); font-size: .97rem; }
.legal p + p { margin-top: .8rem; }
.legal ul { padding-left: 1.2rem; display: grid; gap: .35rem; margin: .8rem 0; }
.legal dl { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr; gap: .55rem 1.2rem; margin: 1rem 0; font-size: .95rem; }
.legal dt { font-weight: 600; color: var(--text); }
.legal dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: .6rem; } }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .92rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .6rem .7rem; border: 1px solid var(--line); color: var(--muted); }
.legal th { background: var(--band); color: var(--text); font-weight: 600; }
.draft {
  margin: 0 0 1.6rem; padding: .9rem 1.1rem; border-radius: var(--radius);
  background: var(--todo-bg); color: var(--todo-text); font-size: .92rem;
}
mark.todo {
  background: var(--todo-bg); color: var(--todo-text); border-radius: 3px;
  padding: 0 .3rem; font-size: .9em; font-weight: 600;
}
