/* ===========================================================
   onpath.run — landing page styles
   Light/airy framed grid (Medusa-like) + dark terminal moments
   =========================================================== */

:root {
  /* surfaces */
  --bg: #f4f4f3;
  --surface: #ffffff;
  --panel: #f7f7f6;
  --panel-2: #f0f0ee;

  /* ink */
  --ink: #16181d;
  --ink-2: #3b3f47;
  --muted: #71757e;
  --faint: #9a9ea7;

  /* hairlines */
  --line: #e7e7e4;
  --line-2: #dededb;
  --line-strong: #cfcfca;

  /* accent (cool technical blue) */
  --blue: #2c6bf0;
  --blue-ink: #1c4fc4;
  --blue-tint: #ecf1fe;
  --blue-line: #cfddfb;

  /* functional severity */
  --amber: #c97a06;
  --amber-tint: #fbf0d9;
  --amber-line: #f0d49a;
  --red: #d23f3f;
  --red-tint: #fbe9e8;
  --red-line: #f1c5c3;
  --green: #1f9655;
  --green-tint: #e6f4eb;
  --green-line: #bfe3cc;

  /* terminal */
  --term-bg: #0e1116;
  --term-bg-2: #0a0c10;
  --term-head: #14181f;
  --term-line: #1d232d;
  --term-text: #ccd3de;
  --term-dim: #69727f;
  --term-blue: #6aa3ff;
  --term-green: #5fcf8e;
  --term-amber: #f0b454;
  --term-red: #f07171;
  --term-purple: #b69cff;

  /* type */
  --sans: "Geist", "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:
    "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo,
    monospace;

  /* layout */
  --wrap: 1240px;
  --pad: 40px;
  --radius: 12px;
  --radius-sm: 8px;

  --shadow-sm:
    0 1px 2px rgba(16, 18, 23, 0.04), 0 1px 1px rgba(16, 18, 23, 0.03);
  --shadow-md:
    0 4px 16px -4px rgba(16, 18, 23, 0.1), 0 2px 6px -2px rgba(16, 18, 23, 0.06);
  --shadow-lg:
    0 24px 60px -18px rgba(16, 18, 23, 0.22),
    0 8px 24px -10px rgba(16, 18, 23, 0.12);
  --shadow-term:
    0 30px 70px -24px rgba(8, 12, 22, 0.45),
    0 10px 28px -12px rgba(8, 12, 22, 0.28);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
::selection {
  background: var(--blue-tint);
  color: var(--blue-ink);
}

/* ---------- framed grid ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  background: var(--surface);
  border-inline: 1px solid var(--line);
}

.section {
  border-top: 1px solid var(--line);
  position: relative;
}
.section:first-child {
  border-top: 0;
}
.pad {
  padding: 84px var(--pad);
}
.pad-tight {
  padding: 56px var(--pad);
}

/* dotted index guides on section edges */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.eyebrow.amber::before {
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-tint);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.022em;
  font-weight: 600;
}
.h-sect {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.sub {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
  max-width: 56ch;
  margin: 16px 0 0;
}
.lead-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.62fr);
  gap: 40px;
  align-items: end;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid transparent;
  transition:
    transform 0.12s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #000;
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  background: var(--panel);
  border-color: var(--line-strong);
}
.btn-blue {
  background: var(--blue);
  color: #fff;
}
.btn-blue:hover {
  background: var(--blue-ink);
}
.btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 13.5px;
}
.btn .ico {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  padding: 0 var(--pad);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 26px;
  height: 26px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-links a:hover {
  background: var(--panel);
  color: var(--ink);
}
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  background: var(--surface);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.gh:hover {
  background: var(--panel);
  border-color: var(--line-strong);
}
.gh b {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- hero ---------- */
.hero {
  padding: 76px var(--pad) 0;
}
.hero h1 {
  font-size: clamp(40px, 6.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 16ch;
}
.hero h1 .dim {
  color: var(--faint);
}
.hero-sub {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--muted);
  max-width: 52ch;
  margin: 26px 0 0;
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 18px;
}
.hero-note code {
  color: var(--ink-2);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
}

/* tab row under hero */
.tabrow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--line);
}
.tabrow .tab {
  padding: 22px 22px 20px;
  border-right: 1px solid var(--line);
  position: relative;
}
.tabrow .tab:last-child {
  border-right: 0;
}
.tab .t-h {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 560;
  color: var(--ink);
}
.tab .t-h .dot {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.tab .t-d {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 6px;
  line-height: 1.45;
}
.tab.active::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
}
.tab.active .t-h .dot {
  color: var(--blue);
}

/* ---------- hero stage (terminal + panel) ---------- */
.stage {
  margin-top: 0;
  padding: 56px var(--pad) 70px;
  background:
    radial-gradient(
      1200px 380px at 50% -40%,
      var(--blue-tint),
      transparent 70%
    ),
    linear-gradient(180deg, var(--panel) 0%, var(--surface) 100%);
  border-top: 1px solid var(--line);
}
.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 0;
  align-items: stretch;
  max-width: 1060px;
  margin: 0 auto;
}
.connector {
  display: none;
}

/* terminal */
.term {
  background: var(--term-bg);
  border-radius: 14px;
  box-shadow: var(--shadow-term);
  overflow: hidden;
  border: 1px solid #20262f;
  position: relative;
  z-index: 2;
}
.term-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  background: var(--term-head);
  border-bottom: 1px solid var(--term-line);
}
.term-dots {
  display: flex;
  gap: 7px;
}
.term-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #353c47;
  display: block;
}
.term-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--term-dim);
  margin-left: 6px;
}
.term-title b {
  color: #aeb6c2;
  font-weight: 500;
}
.term-stat {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--term-dim);
}
.term-stat .live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--term-green);
  box-shadow: 0 0 0 0 rgba(95, 207, 142, 0.55);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(95, 207, 142, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(95, 207, 142, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(95, 207, 142, 0);
  }
}

.term-body {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--term-text);
  padding: 18px 18px 20px;
  min-height: 372px;
}
.term-body .ln {
  white-space: pre-wrap;
  word-break: break-word;
}
.term-body .ln.pad-t {
  margin-top: 6px;
}
.cm-prompt {
  color: var(--term-blue);
}
.cm-cmd {
  color: #eef2f8;
}
.cm-flag {
  color: var(--term-dim);
}
.cm-str {
  color: var(--term-green);
}
.cm-dim {
  color: var(--term-dim);
}
.cm-time {
  color: var(--term-dim);
}
.cm-ok {
  color: var(--term-green);
}
.cm-warn {
  color: var(--term-amber);
}
.cm-amber {
  color: var(--term-amber);
}
.cm-err {
  color: var(--term-red);
}
.cm-purple {
  color: var(--term-purple);
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--term-green);
  vertical-align: -3px;
  margin-left: 2px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.detect {
  margin-top: 12px;
  border: 1px solid #4a3a1c;
  background: #1c1808;
  border-radius: 10px;
  padding: 12px 13px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.detect.show {
  opacity: 1;
  transform: none;
}
.detect-h {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--term-amber);
}
.detect-h .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(240, 180, 84, 0.12);
  border: 1px solid #4a3a1c;
  letter-spacing: 0.03em;
}
.detect-body {
  color: #b9c0cb;
  font-size: 12.5px;
  margin-top: 7px;
  line-height: 1.55;
}
.detect-body b {
  color: #e6ebf2;
  font-weight: 500;
}
.detect-act {
  margin-top: 9px;
  display: block;
  font-size: 12px;
  color: var(--term-green);
}
.detect-act .cm-amber {
  white-space: nowrap;
}

/* side panel (finding card) */
.sidepanel {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  margin: 26px 0 26px -28px;
  align-self: center;
  position: relative;
  z-index: 3;
  overflow: hidden;
}
.sp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.sp-head .ico {
  width: 18px;
  height: 18px;
  color: var(--amber);
}
.sp-head .t {
  font-size: 13.5px;
  font-weight: 560;
}
.payload .ph .t {
  white-space: nowrap;
}
.sp-head .badge {
  margin-left: auto;
}
.sp-body {
  padding: 15px 16px;
}
.kv {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 5px 12px;
  font-size: 12.5px;
}
.kv dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
}
.kv dd {
  margin: 0;
  color: var(--ink-2);
}
.kv dd.mono {
  font-family: var(--mono);
  font-size: 11.5px;
}
.sp-sig {
  margin-top: 13px;
  background: var(--term-bg);
  border-radius: 9px;
  padding: 11px 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--term-text);
  line-height: 1.7;
}
.sp-sig .cm-err {
  color: var(--term-red);
}
.sp-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
}
.sp-foot .btn {
  flex: 1;
  justify-content: center;
}

/* ---------- badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 500;
  border: 1px solid transparent;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.badge.warn {
  background: var(--amber-tint);
  color: var(--amber);
  border-color: var(--amber-line);
}
.badge.warn .d {
  background: var(--amber);
}
.badge.crit {
  background: var(--red-tint);
  color: var(--red);
  border-color: var(--red-line);
}
.badge.crit .d {
  background: var(--red);
}
.badge.ok {
  background: var(--green-tint);
  color: var(--green);
  border-color: var(--green-line);
}
.badge.ok .d {
  background: var(--green);
}
.badge.info {
  background: var(--blue-tint);
  color: var(--blue-ink);
  border-color: var(--blue-line);
}
.badge.info .d {
  background: var(--blue);
}
.badge.neutral {
  background: var(--panel);
  color: var(--muted);
  border-color: var(--line-2);
}
.badge.neutral .d {
  background: var(--faint);
}

/* ---------- problem section ---------- */
.prob-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.prob-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 26px;
}
.prob-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.prob-item:first-child {
  border-top: 0;
}
.prob-item .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  padding-top: 3px;
}
.prob-item h4 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 560;
}
.prob-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* the "loop" visual */
.loopviz {
  background: var(--term-bg);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-term);
  border: 1px solid #20262f;
  font-family: var(--mono);
  font-size: 12.5px;
}
.loopviz .row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  color: var(--term-text);
}
.loopviz .row .ts {
  color: var(--term-dim);
  width: 58px;
  flex: none;
}
.loopviz .row .ic {
  width: 14px;
  flex: none;
  text-align: center;
}
.loopviz .row.f {
  color: #d4dae3;
}
.loopviz .row .x {
  color: var(--term-red);
}
.loopviz .rep {
  margin-left: 78px;
  color: var(--term-amber);
  font-size: 11.5px;
  padding: 3px 0;
}
.loopviz .bracket {
  border-left: 2px solid #3a2f14;
  margin: 2px 0 2px 70px;
  padding-left: 12px;
}
.loopviz .verdict {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--term-line);
  color: var(--term-amber);
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ---------- how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.step {
  padding: 28px 26px 30px;
  border-left: 1px solid var(--line);
  position: relative;
}
.step:first-child {
  border-left: 0;
}
.step .sn {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step .sn .line {
  height: 1px;
  flex: 1;
  background: var(--line-2);
}
.step .si {
  width: 30px;
  height: 30px;
  color: var(--ink);
  margin-bottom: 14px;
}
.step h4 {
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 560;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.step code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 2px 6px;
  border-radius: 5px;
}
.step .cmdline {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 7px;
}
.step .cmdline .p {
  color: var(--blue);
}

/* ---------- feature blocks ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.feat {
  padding: 28px 26px 30px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.15s;
}
.feat:nth-child(3n + 1) {
  border-left: 0;
}
.feat:hover {
  background: var(--panel);
}
.feat .fi {
  width: 22px;
  height: 22px;
  color: var(--ink);
  margin-bottom: 16px;
}
.feat .ftag {
  position: absolute;
  top: 26px;
  right: 24px;
}
.feat h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 560;
}
.feat p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.52;
}

/* ---------- CLI walkthrough ---------- */
.cli-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.cli-card {
  background: var(--term-bg);
  border-radius: 14px;
  box-shadow: var(--shadow-term);
  border: 1px solid #20262f;
  overflow: hidden;
}
.cli-card .term-body {
  min-height: 0;
}
.cmd-block {
  padding: 4px 0;
}
.cmd-block .lbl {
  color: var(--term-dim);
  font-size: 11.5px;
  display: block;
  margin: 14px 0 4px;
}
.cmd-block .lbl:first-child {
  margin-top: 0;
}
.copyhint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- dashboard preview ---------- */
.dash {
  margin-top: 40px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dash-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.dash-top .brand {
  font-size: 14px;
}
.dash-top .brand .mark {
  width: 20px;
  height: 20px;
}
.dash-tabs {
  display: flex;
  gap: 2px;
  margin-left: 8px;
}
.dash-tabs a {
  font-size: 13px;
  padding: 6px 11px;
  border-radius: 7px;
  color: var(--muted);
}
.dash-tabs a.on {
  background: var(--panel-2);
  color: var(--ink);
  font-weight: 500;
}
.dash-top .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-top .org {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
}
.dash-top .org .av {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2c6bf0, #7aa6ff);
}

.dash-body {
  display: grid;
  grid-template-columns: 200px 1fr;
}
.dash-side {
  border-right: 1px solid var(--line);
  padding: 14px 12px;
  background: var(--surface);
}
.dash-side .grp {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--faint);
  margin: 14px 8px 6px;
}
.dash-side .grp:first-child {
  margin-top: 0;
}
.dash-side a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink-2);
}
.dash-side a .si {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.dash-side a.on {
  background: var(--blue-tint);
  color: var(--blue-ink);
  font-weight: 500;
}
.dash-side a.on .si {
  color: var(--blue);
}
.dash-side a .cnt {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
}

.dash-main {
  padding: 18px 20px 22px;
  background: var(--panel);
  min-width: 0;
}
.dash-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dash-h h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.dash-h .range {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 2px;
}
.dash-h .range button {
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 6px;
}
.dash-h .range button.on {
  background: var(--ink);
  color: #fff;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 14px;
}
.kpi .k {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.kpi .v {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 6px;
  line-height: 1;
}
.kpi .v small {
  font-size: 14px;
  color: var(--faint);
  font-weight: 500;
}
.kpi .delta {
  font-family: var(--mono);
  font-size: 10.5px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.kpi .delta.up {
  color: var(--green);
}
.kpi .delta.down {
  color: var(--red);
}
.kpi .delta.flat {
  color: var(--muted);
}

.dash-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 12px;
}
.panel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.pc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.pc-head .t {
  font-size: 13.5px;
  font-weight: 560;
  white-space: nowrap;
}
.pc-head a {
  font-size: 12px;
  color: var(--blue);
  font-family: var(--mono);
}

table.sess {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
table.sess th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--faint);
  font-weight: 500;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
}
table.sess td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: middle;
}
table.sess tr:last-child td {
  border-bottom: 0;
}
table.sess tr:hover td {
  background: var(--panel);
}
table.sess .agent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
}
table.sess .agent .lg {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: #fff;
}
table.sess .repo {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
table.sess .dur {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
table.sess .fc {
  font-family: var(--mono);
  font-size: 11.5px;
}

/* findings bars */
.findbars {
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.fb {
}
.fb .fb-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 5px;
}
.fb .fb-top .nm {
  color: var(--ink-2);
  white-space: nowrap;
}
.fb .fb-top .ct {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.fb .track {
  height: 6px;
  background: var(--panel-2);
  border-radius: 4px;
  overflow: hidden;
}
.fb .track i {
  display: block;
  height: 100%;
  border-radius: 4px;
}

/* spark/trend */
.trend {
  padding: 8px 12px 12px;
}
.trend svg {
  width: 100%;
  height: 86px;
  display: block;
}

/* ---------- privacy ---------- */
.priv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.priv-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
}
.priv-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
}
.priv-item .pi {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.priv-item .pi svg {
  width: 19px;
  height: 19px;
}
.priv-item h4 {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 560;
}
.priv-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.payload {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.payload .ph {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
.payload .ph .t {
  font-size: 13px;
  font-weight: 560;
}
.payload .ph .badge {
  margin-left: auto;
}
.payload pre {
  margin: 0;
  padding: 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
  overflow-x: auto;
}
.payload pre .k {
  color: var(--blue-ink);
}
.payload pre .s {
  color: var(--green);
}
.payload pre .r {
  background: var(--amber-tint);
  color: var(--amber);
  padding: 0 5px;
  border-radius: 4px;
  border: 1px solid var(--amber-line);
}
.payload pre .c {
  color: var(--faint);
}

/* ---------- pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 40px;
  background: var(--surface);
}
.tier {
  padding: 28px 26px 30px;
  border-left: 1px solid var(--line);
  position: relative;
}
.tier:first-child {
  border-left: 0;
}
.tier.feature {
  background: var(--panel);
}
.tier .tname {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
}
.tier .tprice {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 16px 0 2px;
}
.tier .tprice small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.tier .tdesc {
  color: var(--muted);
  font-size: 13.5px;
  min-height: 40px;
}
.tier .btn {
  width: 100%;
  justify-content: center;
  margin: 18px 0 20px;
}
.tier ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tier li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  align-items: start;
}
.tier li svg {
  width: 15px;
  height: 15px;
  color: var(--green);
  margin-top: 2px;
}
.tier li.muted {
  color: var(--faint);
}
.tier li.muted svg {
  color: var(--faint);
}
.tier .ribbon {
  position: absolute;
  top: 24px;
  right: 24px;
}

/* ---------- final CTA ---------- */
.finalcta {
  text-align: center;
  padding: 96px var(--pad);
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    900px 360px at 50% 120%,
    var(--blue-tint),
    transparent 70%
  );
}
.finalcta h2 {
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.04em;
  line-height: 1;
  max-width: 18ch;
  margin: 0 auto;
  font-weight: 600;
}
.finalcta p {
  color: var(--muted);
  font-size: 18px;
  margin: 20px auto 0;
  max-width: 48ch;
}
.finalcta .install {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  background: var(--ink);
  color: #fff;
  padding: 12px 14px 12px 18px;
  border-radius: 11px;
  font-family: var(--mono);
  font-size: 14px;
  box-shadow: var(--shadow-md);
}
.finalcta .install .p {
  color: var(--term-green);
}
.finalcta .install button {
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.finalcta .install button:hover {
  background: rgba(255, 255, 255, 0.2);
}
.finalcta .ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* ---------- footer ---------- */
.foot {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 48px var(--pad) 36px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
}
.foot .brand {
  margin-bottom: 14px;
}
.foot .tag {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 34ch;
}
.foot-col h5 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--faint);
  font-weight: 500;
}
.foot-col a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 5px 0;
}
.foot-col a:hover {
  color: var(--ink);
}
.foot-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--faint);
}
.foot-bot .mono {
  font-family: var(--mono);
}
.foot-bot .right {
  display: flex;
  gap: 18px;
  align-items: center;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .stage-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
  .sidepanel {
    margin: -22px auto 0;
    max-width: 420px;
  }
  .lead-grid,
  .prob-grid,
  .cli-grid,
  .priv-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .dash-body {
    grid-template-columns: 1fr;
  }
  .dash-side {
    display: none;
  }
  .dash-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  :root {
    --pad: 22px;
  }
  .nav-links {
    display: none;
  }
  .tabrow,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .tabrow .tab:nth-child(2) {
    border-right: 0;
  }
  .feat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feat:nth-child(3n + 1) {
    border-left: 1px solid var(--line);
  }
  .feat:nth-child(2n + 1) {
    border-left: 0;
  }
  .price-grid {
    grid-template-columns: 1fr;
  }
  .tier {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .tier:first-child {
    border-top: 0;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pad {
    padding: 56px var(--pad);
  }
}
@media (max-width: 560px) {
  .nav {
    gap: 10px;
  }
  .nav-right {
    gap: 6px;
  }
  .nav-right .gh {
    display: none;
  }
  .hero h1 {
    font-size: 40px;
  }
  .tabrow,
  .steps,
  .feat-grid {
    grid-template-columns: 1fr;
  }
  .tabrow .tab,
  .step,
  .feat {
    border-right: 0 !important;
    border-left: 0 !important;
    border-top: 1px solid var(--line);
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .foot-bot {
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cursor,
  .term-stat .live {
    animation: none;
  }
}
