/* Nyrox showcase site. No framework, no build step: one stylesheet.
   Light by default, dark when the visitor's system asks for it or when the
   toggle in the header says so (theme.js sets data-theme on <html>). */
:root {
  --bg: #ffffff;
  --bg-soft: #f3f6fa;
  --panel: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #0f172a;
  --muted: #475569;
  --dim: #64748b;
  --brand: #0e7490;
  --brand-hover: #155e75;
  --brand-soft: #e0f7fb;
  --brand-ink: #ffffff;
  --accent: #06b6d4;
  --hot: #dc2626;
  --hot-soft: #fee2e2;
  --todo-bg: #fef3c7;
  --todo-text: #92400e;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 14px rgba(15, 23, 42, .05);
  --radius: 14px;
  --wrap: 1080px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120; --bg-soft: #0f172a; --panel: #111a2e; --line: #1e293b; --line-strong: #334155;
    --text: #e2e8f0; --muted: #94a3b8; --dim: #7c8aa0;
    --brand: #22d3ee; --brand-hover: #67e8f9; --brand-soft: rgba(34, 211, 238, .12); --brand-ink: #04222a;
    --accent: #22d3ee; --hot: #f87171; --hot-soft: rgba(248, 113, 113, .14);
    --todo-bg: rgba(251, 191, 36, .16); --todo-text: #fcd34d;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120; --bg-soft: #0f172a; --panel: #111a2e; --line: #1e293b; --line-strong: #334155;
  --text: #e2e8f0; --muted: #94a3b8; --dim: #7c8aa0;
  --brand: #22d3ee; --brand-hover: #67e8f9; --brand-soft: rgba(34, 211, 238, .12); --brand-ink: #04222a;
  --accent: #22d3ee; --hot: #f87171; --hot-soft: rgba(248, 113, 113, .14);
  --todo-bg: rgba(251, 191, 36, .16); --todo-text: #fcd34d;
  --shadow: none;
  color-scheme: dark;
}

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

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

a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
img, svg { display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; color: var(--text); }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; color: var(--muted); }
strong { color: var(--text); font-weight: 650; }

.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; border-radius: 0 0 8px 0; font-weight: 600; z-index: 100;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header ------------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 1.25rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 750; font-size: 1.1rem; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; min-width: 38px; padding: 0 .55rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  color: var(--muted); font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .04em; cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-dark { display: none; }
:root[data-theme="dark"] .theme-light { display: none; }
:root[data-theme="dark"] .theme-dark { display: block; }
@media (max-width: 920px) { .nav-links { display: none; } .nav-actions { margin-left: auto; } }
@media (max-width: 420px) { .nav-actions .btn-ghost { display: none; } }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .75rem 1.2rem; border-radius: 10px; font-weight: 600; font-size: .97rem;
  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: var(--panel); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-strong); color: var(--text); }
.nav .btn { padding: .5rem .9rem; font-size: .9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.cta-row.center { justify-content: center; }

/* Sections ---------------------------------------------------------------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.soft { background: var(--bg-soft); }
.eyebrow { color: var(--brand); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.lede { font-size: clamp(1.03rem, 1.5vw, 1.18rem); margin-top: 1.1rem; max-width: 40em; }
.section-head { max-width: 46em; }
.section-head p { margin-top: .8rem; }

/* Hero */
.hero { padding-top: clamp(3rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .9rem; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: .4rem; }
.hero-points svg { width: 16px; height: 16px; color: var(--brand); flex: none; }

/* Funnel (the hero's product visual) */
.funnel { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.funnel-head { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; font-weight: 650; color: var(--text); margin-bottom: 1rem; }
.funnel-head span { font-weight: 500; color: var(--dim); font-size: .78rem; }
.funnel ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.funnel .w1 { --w: 100%; } .funnel .w2 { --w: 84%; } .funnel .w3 { --w: 46%; } .funnel .w4 { --w: 28%; }
.funnel li {
  width: max(var(--w), 15rem); max-width: 100%;
  display: flex; align-items: baseline; gap: .65rem;
  padding: .65rem .9rem; border-radius: 10px;
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--muted); font-size: .88rem;
}
.funnel li .n { color: var(--text); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.funnel li.hot { background: var(--hot-soft); border-color: color-mix(in srgb, var(--hot) 35%, transparent); }
.funnel li.hot .n { color: var(--hot); }
.funnel figcaption { margin-top: 1rem; font-size: .78rem; color: var(--dim); }

/* Grids and cards */
.grid { display: grid; gap: 1rem; margin-top: 2.5rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.card p { font-size: .94rem; }
.card p + p { margin-top: .6rem; }
.ico {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: .9rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
}
.ico svg { width: 21px; height: 21px; }
.badge {
  display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .15rem .5rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand);
}

/* Steps */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps .card { position: relative; }
.step-n {
  width: 36px; height: 36px; border-radius: 50%; margin-bottom: .9rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: var(--brand-ink); font-weight: 750; font-size: .95rem;
}

/* Checks */
.checks { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .75rem; }
.checks li { position: relative; padding-left: 1.9rem; color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: .1rem; top: .42em; width: 1rem; height: .5rem;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg);
}
.checks.muted li { color: var(--muted); font-size: .95rem; }

/* Compliance callout */
.callout {
  margin-top: 2rem; padding: 1.1rem 1.25rem; border-radius: 12px;
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  font-size: .94rem; color: var(--text);
}
.callout strong { margin-right: .35rem; }
.grid .callout { margin-top: 0; }

/* Chips (integrations) */
.chips-group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); margin-bottom: .7rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips-group.card h3 { font-size: .8rem; display: flex; align-items: center; gap: .45rem; }
.chips-note { margin-top: .8rem; font-size: .86rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.badge.soon { background: var(--todo-bg); color: var(--todo-text); }
.chips li { padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: .88rem; color: var(--text); }

/* Offers */
.offer { display: flex; flex-direction: column; }
.offer ul { margin: 1rem 0 1.4rem; }
.offer .btn { margin-top: auto; align-self: flex-start; }
.offer.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.card .price { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-top: .4rem; }

/* FAQ */
.faq { margin-top: 2.2rem; display: grid; gap: .65rem; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 1.2rem; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1.1rem; font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem; margin-top: 2.2rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.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: .88rem; font-weight: 600; 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(--bg);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: .65rem .8rem; width: 100%;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form .btn { justify-self: start; }
.form-note { font-size: .82rem; color: var(--dim); }

/* Footer ------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 3rem 0 2rem; font-size: .9rem; }
.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: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: .8rem; font-weight: 700; }
.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: .88rem; 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: .84rem; }

/* Legal pages ------------------------------------------------------------- */
.legal { padding-top: clamp(2.5rem, 6vw, 4rem); }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.legal .updated { margin-top: .6rem; font-size: .88rem; color: var(--dim); }
.legal h2 { font-size: 1.3rem; margin: 2.4rem 0 .8rem; }
.legal h3 { margin: 1.5rem 0 .5rem; }
.legal p, .legal li { color: var(--muted); font-size: .98rem; }
.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: .96rem; }
.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(--bg-soft); color: var(--text); font-weight: 650; }
.table-scroll { overflow-x: auto; }
.draft {
  margin: 0 0 1.6rem; padding: .9rem 1.1rem; border-radius: 10px;
  background: var(--todo-bg); color: var(--todo-text); font-size: .92rem;
}
mark.todo {
  background: var(--todo-bg); color: var(--todo-text); border-radius: 4px;
  padding: 0 .3rem; font-size: .9em; font-weight: 600;
}
