/* Shared styles for the AnvixaAI features marketing pages (/features/*).
   Same design tokens as the homepage (dashboard/index.css) — soft blue-white
   canvas, emerald brand, dark #081411 chrome — with the inner-page scaffold
   (pagehero, kicker-h2 + sectionlead, splits, mockups) following the sister
   minusPHI marketing site. Self-contained on purpose: the homepage and these
   pages can evolve independently. */
:root {
  --bg: #f5f8fc;
  --surface: #fff;
  --line: rgba(0, 0, 0, 0.08);
  --line-dark: rgba(15, 23, 42, 0.15);
  --ink: #0f172a;
  --muted: #4b5563;
  --faint: #94a3b8;
  --brand: #026c39;
  --brand-dark: #015a2f;
  --brand-bright: #34d399;
  --brand-tint: rgba(2, 108, 57, 0.1);
  --dark: #081411;
  --em: #6ee7a8;
  --red: #dc2626;
  --radius: 12px;
  --mono: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  --heading: 'Poppins', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 15.5px/1.65 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
h1, h2, h3, .brand, .sectionlead { font-family: var(--heading); letter-spacing: -0.01em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
/* grid/flex children must be allowed to shrink below content width on phones */
.split > *, .grid2 > *, .grid3 > *, .scrub > *, .evline > *, .meters > * { min-width: 0; }

/* ---------- header (dark chrome, matches the homepage) ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: var(--dark); border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 32px;
}
.headrow {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 10px; max-width: 1060px; margin: 0 auto; padding: 15px 0;
}
.brand { font-weight: 700; font-size: 17px; text-decoration: none; color: #fff; }
.brand:hover { text-decoration: none; }
.brand span { color: var(--em); }
nav.navlinks { display: flex; align-items: center; gap: 22px; font-size: 14px; align-self: stretch; }
nav.navlinks a.link { color: #9fb3ab; font-weight: 500; text-decoration: none; }
nav.navlinks a.link:hover { color: #fff; }
nav.navlinks a.link[aria-current="page"] { color: #fff; font-weight: 700; }
/* Features dropdown (opens on hover / keyboard focus; inlined in the mobile
   menu). align-self: stretch grows the hover hit-area to the full header row
   so the menu survives the mouse travelling down to it. */
.navitem { display: flex; align-items: center; align-self: stretch; position: relative; }
.navitem > .link { display: inline-flex; align-items: center; gap: 5px; }
.navitem .caret { opacity: 0.7; transition: transform 0.2s; }
.navitem:hover .caret, .navitem:focus-within .caret { transform: rotate(180deg); }
.navdrop {
  display: none; grid-template-columns: 1fr 1fr; gap: 2px 8px;
  position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%);
  width: min(600px, calc(100vw - 32px)); z-index: 20; background: #0b1d17;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 10px;
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.55);
}
/* invisible bridge under the header so the menu stays open across the gap */
.navdrop::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.navitem:hover .navdrop, .navitem:focus-within .navdrop { display: grid; }
.navdrop a { display: block; padding: 11px 12px; border-radius: 10px; text-decoration: none; }
.navdrop a:hover { background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.navdrop a strong { display: block; color: #e7efe9; font-size: 13.5px; font-weight: 700; }
.navdrop a span { display: block; color: #9fb3ab; font-size: 12.5px; font-weight: 500; line-height: 1.5; margin-top: 2px; }
.navdrop a:hover strong { color: #fff; }
.navdrop a[aria-current="page"] strong { color: var(--em); }
.navdrop .allfeatures {
  grid-column: 1 / -1; margin-top: 4px; padding: 12px 12px 6px; border-radius: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09); color: var(--em); font-size: 13px; font-weight: 700;
}
.navdrop .allfeatures:hover { background: none; color: #9df2c4; }
.navitem:has(a[aria-current="page"]) > .link { color: #fff; font-weight: 700; }
.navcta { display: flex; align-items: center; gap: 12px; }
.navtoggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: #e7efe9; margin-left: auto;
}
@media (max-width: 760px) {
  .navtoggle { display: block; }
  nav.navlinks {
    display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start;
    gap: 0; padding: 6px 0 10px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  header.open nav.navlinks { display: flex; }
  nav.navlinks a.link { padding: 10px 4px; font-size: 15px; width: 100%; }
  .navitem { width: 100%; flex-direction: column; align-items: flex-start; }
  .navitem .caret { display: none; }
  .navdrop {
    display: block; position: static; transform: none; width: auto;
    background: none; border: 0; box-shadow: none; padding: 0 0 6px 14px;
  }
  .navdrop::before { display: none; }
  .navdrop a { padding: 8px 4px; width: 100%; border-radius: 0; }
  .navdrop a strong { font-size: 14px; font-weight: 500; color: #9fb3ab; }
  .navdrop a span, .navdrop .allfeatures { display: none; }
  .navdrop a[aria-current="page"] strong { color: #fff; font-weight: 700; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 14.5px; text-decoration: none;
  padding: 11px 20px; border-radius: 9px; cursor: pointer;
  background: var(--brand); color: #fff; border: 0;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); text-decoration: none; }
.btn.ghost {
  background: transparent; color: #e7efe9;
  border: 1px solid rgba(255, 255, 255, 0.28); box-shadow: none;
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn.big { padding: 13px 26px; font-size: 15.5px; }

/* ---------- page scaffold ---------- */
main { max-width: 1060px; margin: 0 auto; padding: 0 32px 90px; }

/* dark full-bleed page hero (negative-margin trick; body has overflow-x: clip) */
.pagehero {
  text-align: center;
  margin: 0 calc(50% - 50vw);
  padding: 62px calc(50vw - 50%) 50px;
  background:
    radial-gradient(1000px 480px at 50% -140px, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0) 68%),
    radial-gradient(700px 300px at 50% 0, rgba(110, 231, 168, 0.1), transparent 70%),
    var(--dark);
  border-bottom: 1px solid rgba(110, 231, 168, 0.16);
}
.pagehero .kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--em); margin-bottom: 18px;
}
.pagehero h1 {
  font-size: clamp(28px, 4.4vw, 44px); line-height: 1.14;
  margin: 0 auto 18px; max-width: 800px; color: #f8fafc;
}
.pagehero h1 em { font-style: normal; color: var(--em); }
.pagehero .sub { color: #a9b8af; font-size: 17px; max-width: 660px; margin: 0 auto; }
.pagehero .heroctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.pagehero .note { color: #74857c; font-size: 12.5px; margin-top: 14px; }
.pagehero .tier {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 99px; background: rgba(255, 255, 255, 0.09); color: #a9e8c6;
}

/* section rhythm: small uppercase h2 + big Poppins lead (minusPHI idiom) */
h2 {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--brand); margin: 92px 0 8px; text-align: center;
  scroll-margin-top: 84px;
}
.sectionlead {
  font-weight: 700; font-size: clamp(21px, 3vw, 27px);
  text-align: center; margin: 0 auto 30px; max-width: 660px; line-height: 1.3;
}
.sectionlead em { font-style: normal; color: var(--brand); }

/* hero-adjacent demo container */
.herovis { max-width: 760px; margin: 44px auto 0; }
.demonote { text-align: center; color: var(--faint); font-size: 12.5px; margin-top: 14px; }

/* ---------- scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal].d1 { transition-delay: 0.08s; }
.js [data-reveal].d2 { transition-delay: 0.16s; }
.js [data-reveal].d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- editorial split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-top: 34px; }
.split.rev > .splitmedia { order: -1; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 26px; } .split.rev > .splitmedia { order: 0; } }
.split h3 { font-size: clamp(20px, 2.6vw, 25px); line-height: 1.25; margin: 0 0 12px; }
.split p { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.split p code, p code { font: 500 13px/1 var(--mono); background: rgba(15, 23, 42, 0.06); border-radius: 5px; padding: 1px 6px; }
.stepno {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.stepno::before { content: ''; width: 26px; height: 2px; background: var(--brand); flex: none; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card .t { font-weight: 700; font-family: var(--heading); font-size: 15.5px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }
.card .ic {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--brand-tint); color: var(--brand); margin-bottom: 12px;
}

/* ---------- checklists ---------- */
ul.plain { list-style: none; padding: 0; margin: 12px 0 0; }
ul.plain li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
ul.plain li:first-child { border-top: 0; }
ul.plain li::before { position: absolute; left: 2px; font-weight: 700; }
.yes li::before { content: '✓'; color: var(--brand); }
.no li::before { content: '✕'; color: var(--red); }

/* pill chips row */
.chiprow { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chiprow span {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; font-size: 13px; font-weight: 500; color: var(--muted);
}
.chiprow span::before { content: '✓'; color: var(--brand); font-weight: 800; font-size: 12px; }

/* ---------- browser mockup ---------- */
.browser { background: #fff; border: 1px solid var(--line-dark); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 50px -26px rgba(15, 23, 42, 0.4); }
.browser .bar { display: flex; align-items: center; gap: 8px; background: #f1f5f9; border-bottom: 1px solid var(--line); padding: 9px 12px; }
.browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.browser .bar .url {
  flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  font: 600 11px/1 var(--mono); color: var(--muted); padding: 6px 10px; margin-left: 6px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.browser .page { padding: 16px; }
/* page skeleton lines inside browser mockups */
.skl { height: 9px; border-radius: 5px; background: #e5eaf1; margin: 11px 0; }
.skl.h { height: 14px; width: 38%; background: #dbe2ea; }
.skl.w1 { width: 72%; } .skl.w2 { width: 58%; } .skl.w3 { width: 65%; }
.skl.btn { width: 130px; height: 26px; border-radius: 8px; background: var(--brand-tint); margin-top: 14px; }

/* ---------- code editor mockup ---------- */
.editor { border-radius: 12px; overflow: hidden; background: #0f172a; box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.5); }
.editor .tabs { display: flex; gap: 2px; background: #0a1120; padding: 8px 10px 0; }
.editor .tab { font: 600 11.5px/1 var(--mono); color: #64748b; padding: 8px 14px; border-radius: 7px 7px 0 0; }
.editor .tab.on { background: #0f172a; color: #d7e3f4; }
.editor pre { margin: 0; padding: 18px 20px 22px; font: 12.5px/1.75 var(--mono); color: #d7e3f4; overflow-x: auto; }
.editor .c { color: #6b8ab8; }
.editor .g { color: #57d99a; }

/* ---------- app/status rows ---------- */
.appstack { display: grid; gap: 10px; }
.approw {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.35);
}
.approw .ic {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand-tint); color: var(--brand); flex: none;
}
.approw .nm {
  font-weight: 600; font-size: 13.5px; color: var(--ink);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.approw .nm.mono { font-family: var(--mono); font-size: 12.5px; }
.approw .st {
  margin-left: auto; flex: none; font-size: 10px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 4px 10px;
}
.approw .st.ok { background: rgba(2, 108, 57, 0.1); color: var(--brand); }
.approw .st.wait { background: rgba(245, 158, 11, 0.13); color: #92400e; }
.approw .st.off { background: rgba(220, 38, 38, 0.09); color: #b91c1c; }
.approw.dead .nm { text-decoration: line-through; color: var(--faint); }
.approw.dead .ic { background: rgba(220, 38, 38, 0.09); color: #b91c1c; }

/* ---------- event log mockup ---------- */
.evlog { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 50px -26px rgba(15, 23, 42, 0.25); }
.evlog .lhead {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); padding: 11px 16px; border-bottom: 1px solid var(--line); background: #f8fafc;
}
.evlog .lrow { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); font: 500 12.5px/1.5 var(--mono); color: var(--muted); }
.evlog .lrow:first-of-type { border-top: 0; }
.evlog .lrow .sig { flex: none; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font: 800 10px/1 'Inter', sans-serif; }
.evlog .lrow .sig.ok { background: var(--brand-tint); color: var(--brand); }
.evlog .lrow .sig.no { background: rgba(220, 38, 38, 0.1); color: var(--red); }
.evlog .lrow .sig.warn { background: rgba(217, 119, 6, 0.14); color: #b45309; }
.evlog .lrow .to { margin-left: auto; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; color: var(--faint); white-space: nowrap; }

/* ---------- dark band (full-bleed) ---------- */
.band {
  margin: 92px calc(50% - 50vw) 0; padding: 64px calc(50vw - 50%) 66px;
  background:
    radial-gradient(640px 340px at 88% 0%, rgba(16, 185, 129, 0.14), transparent 70%),
    radial-gradient(560px 320px at 8% 100%, rgba(16, 185, 129, 0.08), transparent 70%),
    #0d1712;
  color: #e6efe9;
}
/* a band directly under the dark page hero joins it flush — otherwise a
   strip of light page background shows between the two dark sections
   (two classes, so this also beats the mobile .band margin override) */
.pagehero + .band { margin-top: 0; }
.band h2 { color: var(--em); margin-top: 0; }
.band .sectionlead { color: #f1f5f9; }
.band .sectionlead em { color: var(--em); }
.band .demonote { color: #8fa096; }
.band .split p { color: #a9b8af; }
.band .split h3 { color: #f8fafc; }
.band ul.plain li { color: #a9b8af; border-top-color: rgba(255, 255, 255, 0.08); }
.band .yes li::before { color: var(--em); }

/* ---------- live scrub demo (facts → published JSON-LD) ---------- */
.scrub { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; align-items: start; }
@media (max-width: 760px) { .scrub { grid-template-columns: 1fr; } }
.evcard {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px; padding: 18px 20px; font: 12.5px/1.9 var(--mono);
}
/* on light backgrounds the cards go dark-slate instead of glassy */
main > .scrub .evcard, .split .evcard { background: #0f172a; border-color: rgba(148, 163, 184, 0.18); }
.evtitle {
  display: flex; align-items: center; gap: 9px;
  font: 600 13px/1 'Inter', sans-serif; letter-spacing: 0.02em; color: #c3d0c8; margin-bottom: 14px;
}
.evtitle .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bright); }
.evtitle .dot.amber { background: #fbbf24; }
.evline {
  display: flex; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden;
  min-width: 0; transition: opacity 0.45s ease, transform 0.45s ease; max-height: 30px;
}
.evline .k { color: #8db4a0; flex: none; }
.evline .v { color: #d7e3f4; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.evline .verdict {
  margin-left: auto; flex: none; font: 700 9.5px/1 'Inter', sans-serif; letter-spacing: 0.06em;
  text-transform: uppercase; border-radius: 5px; padding: 3px 7px;
  opacity: 0; transition: opacity 0.35s ease;
}
.evline .verdict.keep { background: rgba(52, 211, 153, 0.15); color: #6ee7a8; }
.evline .verdict.strip { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.evline .verdict.src {
  background: rgba(52, 211, 153, 0.15); color: #6ee7a8;
  text-transform: none; letter-spacing: 0; font-family: var(--mono);
}
.evline.kept .verdict, .evline.gone .verdict { opacity: 1; }
.evline.gone { opacity: 0.28; }
.evline.gone .v, .evline.gone .k { text-decoration: line-through; }
.evcard.clean .evline { opacity: 0; transform: translateX(-8px); }
.evcard.clean .evline.show { opacity: 1; transform: none; }
html:not(.js) .evcard.clean .evline { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .evcard.clean .evline { opacity: 1 !important; transform: none !important; } }
@media (max-width: 420px) { .evcard { font-size: 10.5px; padding: 13px 14px; } }

/* ---------- readiness ring + meters ---------- */
.scorepanel {
  display: flex; align-items: center; gap: 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  box-shadow: 0 18px 44px -24px rgba(15, 23, 42, 0.25);
}
@media (max-width: 480px) { .scorepanel { flex-direction: column; gap: 20px; } }
.ringwrap { position: relative; width: 132px; height: 132px; flex: none; }
.ringwrap svg { transform: rotate(-90deg); }
.ringwrap .track { fill: none; stroke: rgba(2, 108, 57, 0.12); stroke-width: 10; }
.ringwrap .arc {
  fill: none; stroke: var(--brand); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 364.4; stroke-dashoffset: 364.4;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ringnum {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 700 34px/1 var(--heading); color: var(--ink);
}
.ringnum small { display: block; font: 600 11px/1.6 'Inter', sans-serif; color: var(--faint); text-align: center; }
.meters { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; width: 100%; }
.meterrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; color: var(--muted); }
.meterrow .lbl { flex: none; width: 148px; }
@media (max-width: 480px) { .meterrow .lbl { width: 118px; font-size: 12px; } }
.meterrow .bar { flex: 1; height: 7px; border-radius: 99px; background: rgba(2, 108, 57, 0.1); overflow: hidden; }
.meterrow .fill {
  display: block; height: 100%; width: 0; border-radius: 99px; background: var(--brand);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.meterrow .val { flex: none; width: 26px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.scorepanel.on .arc { stroke-dashoffset: var(--target); }
.scorepanel.on .fill { width: var(--w); }
@media (prefers-reduced-motion: reduce) {
  .ringwrap .arc { transition: none; stroke-dashoffset: var(--target); }
  .meterrow .fill { transition: none; width: var(--w); }
}

/* ---------- heat blobs ---------- */
.heatpage { position: relative; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; animation: heatpulse 3.4s ease-in-out infinite; }
.blob.hot { background: radial-gradient(circle, rgba(220,38,38,0.5), rgba(234,88,12,0.32) 45%, rgba(234,179,8,0.14) 70%, transparent 74%); }
.blob.warm { background: radial-gradient(circle, rgba(234,88,12,0.35), rgba(234,179,8,0.18) 55%, transparent 72%); animation-delay: 1.1s; }
.blob.cool { background: radial-gradient(circle, rgba(234,179,8,0.28), rgba(234,179,8,0.08) 55%, transparent 72%); animation-delay: 2s; }
@keyframes heatpulse { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* ---------- entity mapping demo (dark panel, from the homepage) ---------- */
.entpanel {
  background:
    radial-gradient(640px 340px at 88% 0%, rgba(16, 185, 129, 0.14), transparent 70%),
    radial-gradient(560px 320px at 8% 100%, rgba(16, 185, 129, 0.08), transparent 70%),
    #0d1712;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px;
  padding: 22px; box-shadow: 0 18px 44px -24px rgba(15, 23, 42, 0.45);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch;
}
.entpanel > * { min-width: 0; }
@media (max-width: 520px) { .entpanel { grid-template-columns: 1fr; } }
.entpage { font-size: 13px; line-height: 2.1; color: #a9b8af; }
.entpage .pgtitle {
  font: 600 10.5px/1 'Inter', sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
  color: #7d9186; margin-bottom: 10px;
}
.ent {
  border-radius: 4px; padding: 1px 4px; white-space: nowrap; color: #e6efe9;
  background: rgba(52, 211, 153, 0.1); box-shadow: inset 0 -2px 0 rgba(52, 211, 153, 0.35);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.ent .tag {
  display: inline-block; font: 700 8.5px/1 'Inter', sans-serif; letter-spacing: 0.05em;
  text-transform: uppercase; color: #fff; background: var(--brand); border-radius: 4px;
  padding: 2px 5px; margin-left: 5px; vertical-align: 2px;
  opacity: 0; transform: scale(0.6); transition: opacity 0.35s ease, transform 0.35s ease;
}
.ent.on { background: rgba(52, 211, 153, 0.24); box-shadow: inset 0 -2px 0 #34d399; }
.ent.on .tag { opacity: 1; transform: none; }
.entgraph { position: relative; min-height: 250px; }
.entgraph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.entgraph line {
  stroke: rgba(52, 211, 153, 0.5); stroke-width: 1.5; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.6s ease;
}
.entgraph line.on { stroke-dashoffset: 0; }
.gn {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 11px; font-size: 11.5px; font-weight: 600; color: var(--ink);
  box-shadow: 0 8px 18px -10px rgba(15, 23, 42, 0.3); white-space: nowrap;
}
.gn i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.gn.hub { border-color: rgba(2, 108, 57, 0.45); font-weight: 700; }
.gn.hub i { background: var(--brand); }
.gn.p1 i { background: #3b82f6; }
.gn.p2 i { background: #10b981; }
.gn.p3 i { background: #f59e0b; }
.gn.p4 i { background: #8b5cf6; }
.gn.pop {
  opacity: 0; transform: translate(-50%, -50%) scale(0.55);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gn.pop.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .ent, .ent .tag, .gn.pop, .entgraph line { transition: none; }
}

/* ---------- AI chat mockup (visibility pages) ---------- */
.chatmock { background: #fff; border: 1px solid var(--line-dark); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px -26px rgba(15, 23, 42, 0.4); }
.chatmock .chathead {
  display: flex; align-items: center; gap: 9px; padding: 11px 16px;
  border-bottom: 1px solid var(--line); background: #f8fafc;
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.chatmock .chathead .dlogo { display: grid; place-items: center; width: 22px; height: 22px; }
.chatmock .chatbody { padding: 16px; display: grid; gap: 12px; }
.chatmock .msg { max-width: 85%; border-radius: 13px; padding: 10px 14px; font-size: 13px; line-height: 1.55; }
.chatmock .msg.user { justify-self: end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.chatmock .msg.ai { justify-self: start; background: #f1f5f9; color: #1f2937; border-bottom-left-radius: 4px; }
.chatmock .msg.ai b { color: var(--brand-dark); }
.chatmock .msg.ai .cite {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; vertical-align: 1px;
  font: 600 10px/1 'Inter', sans-serif; color: var(--brand);
  background: var(--brand-tint); border-radius: 99px; padding: 3px 8px; white-space: nowrap;
}
.chatverdicts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }
.chatverdicts span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; border-radius: 99px; padding: 5px 11px;
}
.chatverdicts .v-ok { background: rgba(2, 108, 57, 0.1); color: var(--brand); }
.chatverdicts .v-ok::before { content: '✓'; }

/* typing dots */
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: typeblink 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typeblink { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; } }

/* ---------- stat tiles ---------- */
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 10px; text-align: center; }
.stat b { display: block; font-family: var(--heading); font-size: 27px; color: var(--ink); }
.stat b em { font-style: normal; font-size: 15px; color: var(--brand); }
.stat span { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
@media (max-width: 640px) { .statgrid { grid-template-columns: 1fr 1fr; } }

/* ---------- summary table ---------- */
.tierswrap { overflow-x: auto; border-radius: 12px; margin-top: 4px; }
table.tiers { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13.5px; }
table.tiers th, table.tiers td { padding: 10px 16px; text-align: left; border-top: 1px solid var(--line); }
table.tiers thead th { border-top: 0; background: #f8fafc; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
table.tiers td:first-child { font-weight: 600; color: var(--ink); }
table.tiers td { color: var(--muted); }
table.tiers .ok { color: var(--brand); font-weight: 700; }
table.tiers th:last-child, table.tiers td:last-child { text-align: center; white-space: nowrap; }

/* ---------- links & CTA ---------- */
.morelink { text-align: center; margin: 26px 0 0; font-size: 14.5px; font-weight: 650; }
.morelink a { color: var(--brand); text-decoration: none; }
.morelink a:hover { text-decoration: underline; }
.finalcta {
  margin: 92px calc(50% - 50vw) 0; text-align: center;
  background:
    radial-gradient(640px 340px at 88% 0%, rgba(16, 185, 129, 0.14), transparent 70%),
    radial-gradient(560px 320px at 8% 100%, rgba(16, 185, 129, 0.08), transparent 70%),
    #0d1712;
  padding: 56px calc(50vw - 50%); color: #e6efe9;
}
.finalcta .ctalead {
  font-family: var(--heading); font-weight: 700; font-size: clamp(21px, 3vw, 27px);
  color: #fff; margin: 0 0 10px;
}
.finalcta p.ctasub { color: #a9b8af; margin: 0 auto 24px; max-width: 520px; }
.finalcta .note { color: #74857c; font-size: 12.5px; margin-top: 14px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid rgba(255, 255, 255, 0.07); background: var(--dark); padding: 50px 32px 26px; }
.foot { max-width: 1060px; margin: 0 auto; }
.footgrid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px 28px; align-items: start; }
.footbrand { display: flex; flex-direction: column; gap: 14px; max-width: 300px; }
.foottag { color: #74857c; font-size: 13px; line-height: 1.55; }
.footcol { display: flex; flex-direction: column; gap: 11px; }
.footcol h4 { color: var(--em); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 4px; }
.footcol a { color: #93a69e; font-size: 13.5px; line-height: 1.3; text-decoration: none; }
.footcol a:hover { color: #fff; text-decoration: none; }
.foot .tiny { color: #74857c; font-size: 12px; margin: 40px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
@media (max-width: 760px) {
  footer { padding: 38px 20px 26px; }
  .footgrid { grid-template-columns: 1fr 1fr; gap: 28px 22px; }
  .footbrand { grid-column: 1 / -1; max-width: none; }
}

/* ---------- mobile rhythm ---------- */
@media (max-width: 640px) {
  header { padding: 0 16px; }
  main { padding-left: 16px; padding-right: 16px; padding-bottom: 56px; }
  h2 { margin: 56px 0 8px; }
  .sectionlead { margin-bottom: 22px; }
  .pagehero { padding-top: 42px; padding-bottom: 38px; }
  .split { gap: 22px; margin-top: 24px; }
  .band { padding-top: 44px; padding-bottom: 50px; margin-top: 56px; }
  .finalcta { margin-top: 56px; padding-top: 42px; padding-bottom: 42px; }
  .card { padding: 18px; }
}
