/* =============================================================================
   landing-v2.css — CredibilityOS / AuthorityMap (dark editorial)
   Direction: near-black canvas, single sharp copper accent, JetBrains Mono
   labels, Geist display. Depth via layered surfaces + gradient-border glass.
   Reveal classes mirror /app.js ([data-reveal], [data-masked-reveal]).
   ========================================================================== */

/* ----- Tokens ----- */
:root {
  --bg: #0a0d12;
  --bg-grad-top: #0c1016;
  --surface: #14181e;
  --surface-2: #191c21;
  --surface-raised: #1b2027;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-2: rgba(255, 255, 255, 0.14);

  --text: #f3f5f7;
  --text-2: #b7bec8;
  --text-3: #888f99;
  --text-faint: #5b626d;

  --copper: #cc8066;
  --copper-bright: #e7a184;
  --copper-deep: #a8654d;
  --slate: #334155;
  --emerald: #5fd39a;
  --amber: #f4c25a;
  --red: #ef7e72;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --text-hero: clamp(2.35rem, 1.2rem + 3.6vw, 4.5rem);
  --text-h2: clamp(1.85rem, 1.15rem + 2.3vw, 3.05rem);
  --text-h3: clamp(1.08rem, 1rem + 0.45vw, 1.3rem);
  --text-lead: clamp(1.04rem, 0.99rem + 0.4vw, 1.24rem);

  --container: 1240px;
  --pad-x: clamp(1.25rem, 0.4rem + 3.2vw, 3rem);
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);

  --r-card: 14px;
  --r-control: 9px;
  --r-pill: 999px;

  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 720ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 44px -26px rgba(0, 0, 0, 0.75);
  --shadow-pop: 0 34px 70px -34px rgba(0, 0, 0, 0.85);
  --glow-copper: 0 14px 50px -16px rgba(204, 128, 102, 0.4);

  /* gradient-border glass (NeuroSync-style) */
  --glass-bg: linear-gradient(rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  --glass-border: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.02)
  );
}

/* ----- Reset / base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(
      120% 80% at 50% -10%,
      var(--bg-grad-top),
      var(--bg) 60%
    );
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection {
  background: rgba(204, 128, 102, 0.28);
  color: #fff;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--copper-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 0 rgba(204, 128, 102, 0.5);
  animation: pulse-dot 2.6s var(--ease) infinite;
}
.eyebrow--plain::before {
  display: none;
}
@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(204, 128, 102, 0.45);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(204, 128, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(204, 128, 102, 0);
  }
}

/* ----- Buttons ----- */
.btn {
  --_chip: #0a0d12;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1;
  padding: 0.45rem 0.45rem 0.45rem 1.25rem;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn__chip {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--_chip);
  color: #fff;
  transition: transform var(--dur) var(--ease);
}
.btn__chip svg {
  width: 16px;
  height: 16px;
}
.btn--primary {
  background: #fff;
  color: #0a0d12;
  box-shadow: var(--glow-copper);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 60px -16px rgba(204, 128, 102, 0.55);
}
.btn--primary:hover .btn__chip {
  transform: translate(2px, -2px);
}
.btn--ghost {
  background: var(--glass-bg);
  border-color: var(--hairline);
  color: var(--text);
  padding: 0.62rem 1.15rem;
}
.btn--ghost:hover {
  border-color: var(--hairline-2);
  transform: translateY(-2px);
}
.btn--block {
  width: 100%;
  justify-content: center;
  padding: 0.95rem 1.25rem;
}

/* ----- Nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(10, 13, 18, 0.62);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.06rem;
}
.nav__logo img {
  height: 26px;
  width: auto;
}
/* primary-icon.svg is built for light bg (near-black fill) — render white on dark */
.nav__mark,
.footer__logo {
  filter: brightness(0) invert(1);
}
.footer__logo {
  opacity: 0.85;
}
.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--text-3);
}
.nav__links a {
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav__links a:hover,
.nav__links a[data-active="true"] {
  color: var(--text);
}
.nav__links a[data-active="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -23px;
  height: 1px;
  background: var(--copper);
}
.nav__cta {
  display: none;
}
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-control);
  cursor: pointer;
}
.nav__toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
}
@media (min-width: 860px) {
  .nav__links,
  .nav__cta {
    display: flex;
  }
  .nav__toggle {
    display: none;
  }
}

/* Mobile sheet */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8, 11, 15, 0.985);
  backdrop-filter: blur(10px);
  padding: 1.5rem var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
/* Honor the `hidden` attribute the JS toggles. Without this, the base
   `display: flex` above overrides the UA `[hidden]{display:none}` rule, so the
   closed sheet stays rendered as a full-viewport (inset:0), z-index:70,
   opacity:0 overlay that intercepts EVERY click on the page. */
.mobile-nav[hidden] { display: none; }
.mobile-nav[data-open="true"] {
  opacity: 1;
  transform: none;
}
.mobile-nav__close {
  align-self: flex-end;
  width: 42px;
  height: 42px;
  border-radius: var(--r-control);
  border: 1px solid var(--hairline);
  background: var(--glass-bg);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  margin-bottom: 1rem;
}
.mobile-nav__links {
  display: flex;
  flex-direction: column;
}
.mobile-nav__links a {
  padding: 1rem 0;
  font-size: 1.3rem;
  font-weight: 500;
  border-bottom: 1px solid var(--hairline);
}
.mobile-nav .btn {
  margin-top: 1.5rem;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(3rem, 1rem + 7vw, 6rem);
  padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
@media (min-width: 880px) {
  .hero {
    min-height: calc(100svh - 68px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__poster {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 62% 36%, rgba(204, 128, 102, 0.22), transparent 70%),
    radial-gradient(50% 60% at 50% 100%, rgba(231, 161, 132, 0.14), transparent 72%),
    conic-gradient(
      from 210deg at 55% 18%,
      rgba(255, 255, 255, 0.06),
      rgba(204, 128, 102, 0.05),
      rgba(51, 65, 85, 0.05),
      rgba(255, 255, 255, 0.06)
    );
  filter: saturate(1.05);
  opacity: 1;
  transition: opacity 1.2s var(--ease);
}
/* light-streak hint for the static poster (no-WebGL / mobile) */
.hero__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    100deg,
    transparent 0 38px,
    rgba(255, 255, 255, 0.025) 38px 39px,
    transparent 39px 80px
  );
  mask-image: radial-gradient(70% 80% at 55% 30%, #000 30%, transparent 75%);
  opacity: 0.7;
}
#wgl-trails {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 1.4s var(--ease);
}
#wgl-trails[data-active="true"] {
  opacity: 0.92;
}
/* once trails run, drop the poster glow so it doesn't double up */
.hero:has(#wgl-trails[data-active="true"]) .hero__poster {
  opacity: 0.5;
}
/* readability scrims + seam into the next section */
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to right,
      rgba(10, 13, 18, 0.92) 0%,
      rgba(10, 13, 18, 0.5) 42%,
      transparent 78%
    );
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg) 4%,
    rgba(10, 13, 18, 0.58) 30%,
    transparent 64%
  );
}

.hero__head {
  max-width: 60ch;
  margin-bottom: clamp(1.75rem, 1rem + 3vw, 3.25rem);
}
.hero__title {
  font-size: var(--text-hero);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 300;
  margin-top: 1.2rem;
  max-width: 24ch;
  color: var(--text-2);
}
.hero__title .line {
  display: block;
}
.hero__title .accent {
  color: var(--copper-bright);
  font-weight: 600;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 1rem + 4vw, 3.5rem);
  align-items: end;
}
@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}
.hero__cards {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.hero__aside {
  max-width: 38ch;
}
.hero__sub {
  font-size: var(--text-lead);
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 18px rgba(8, 11, 15, 0.75);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}
.hero__price {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-3);
}
.hero__price b {
  color: var(--copper);
  font-weight: 600;
}

/* glass feature cards */
.fcard {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--glass-bg) padding-box, var(--glass-border) border-box;
  backdrop-filter: blur(12px);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.fcard:hover {
  transform: translateX(5px);
}
.fcard__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(204, 128, 102, 0.1);
  color: var(--copper-bright);
}
.fcard__icon svg {
  width: 18px;
  height: 18px;
}
.fcard__t {
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}
.fcard__d {
  font-size: 0.84rem;
  color: var(--text-3);
}

/* engine strip */
.engines {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}
.engines__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.engines__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem 2.4rem;
}
.engine {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-faint);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.engine:hover {
  color: var(--text);
  transform: translateY(-2px);
}
.engine__logo {
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}
.engine span {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ----- Sections ----- */
.section {
  position: relative;
  padding-block: var(--section);
  border-top: 1px solid var(--hairline);
}
.section--surface {
  background: linear-gradient(180deg, var(--surface-2), var(--bg) 90%);
}
.section__eyebrow {
  margin-bottom: 1.1rem;
}
.h2 {
  font-size: var(--text-h2);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.lead {
  font-size: var(--text-lead);
  color: var(--text-2);
  line-height: 1.6;
  margin-top: 1.1rem;
}
.note {
  color: var(--text-3);
  font-size: 0.98rem;
}
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 1rem + 6vw, 6rem);
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}
.emph {
  color: var(--text);
  font-weight: 500;
}

/* ----- Video ----- */
.video {
  position: relative;
  margin-top: 2.5rem;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: #000;
  box-shadow: var(--shadow-pop);
  aspect-ratio: 16 / 9;
}
.video__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--dur) var(--ease);
}
.video__play {
  position: absolute;
  inset: 0;
  display: block;
  /* The poster (media/video-thumbnail.webp) has its own play button and
     framing baked in, so the overlay is a transparent full-area click /
     keyboard target only — no gradient, no second button, no label. */
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #fff;
  transition: opacity var(--dur) var(--ease);
}
.video__play:focus-visible {
  outline: 2px solid var(--copper-bright);
  outline-offset: -4px;
  border-radius: var(--r-card);
}
/* Subtle "this is interactive" cue before playback starts. */
.video:not(.is-playing):hover .video__media {
  filter: brightness(1.04);
}
/* app.js adds .is-playing to the [data-video] figure once playback starts */
.video.is-playing .video__play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ----- Result panel (the centerpiece) ----- */
.panel {
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--copper), transparent 60%);
}
.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.1rem;
}
.panel__head .q {
  color: var(--text-2);
  text-transform: none;
  letter-spacing: 0;
}
.result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  margin-bottom: 0.6rem;
}
.result__who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.result__ava {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  background: #2a2f37;
  color: var(--text-2);
}
.result__name {
  font-size: 0.92rem;
  font-weight: 500;
}
.result__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.result--ok .result__tag {
  color: var(--emerald);
}
.result--you {
  border: 1px dashed rgba(204, 128, 102, 0.5);
  background: rgba(204, 128, 102, 0.07);
}
.result--you .result__ava {
  background: #1a1410;
  border: 1px solid rgba(204, 128, 102, 0.4);
  color: var(--copper-bright);
}
.result--you .result__name {
  color: var(--copper-bright);
}
.result--you .result__tag {
  color: var(--copper-bright);
}
.panel__foot {
  margin-top: 0.9rem;
  font-size: 0.76rem;
  color: var(--text-faint);
  text-align: center;
}

/* ----- Bento (deliverable) ----- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
}
@media (min-width: 760px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
}
.bento__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.7rem;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  min-height: 230px;
}
.bento__card:hover {
  border-color: var(--hairline-2);
  transform: translateY(-3px);
}
.bento__card--glow::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(204, 128, 102, 0.18), transparent 70%);
  pointer-events: none;
}
.bento__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--copper);
  margin-bottom: 1.4rem;
}
.bento__t {
  font-size: var(--text-h3);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
}
.bento__d {
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.55;
  margin-top: auto;
}
.scorebars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.4rem 0 1rem;
}
.scorebar {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}
.scorebar span:first-child {
  color: var(--text-3);
}
.scorebar span:last-child {
  font-family: var(--font-mono);
}
.s-strong {
  color: var(--emerald);
}
.s-work {
  color: var(--amber);
}
.s-miss {
  color: var(--red);
}
.bento__card--glow .bento__d {
  border-top: 1px solid var(--hairline);
  padding-top: 0.9rem;
}

/* ----- Proof scopes (scattered vs connected signal) ----- */
.proof {
  --scope: clamp(212px, 17rem + 8vw, 300px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  margin-top: clamp(2.8rem, 1.6rem + 3vw, 4.5rem);
}
@media (min-width: 880px) {
  .proof {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: clamp(1.25rem, -1.5rem + 6vw, 3.75rem);
  }
}

.scope {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
}
.scope__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scope--bad .scope__eyebrow {
  color: rgba(239, 126, 114, 0.82);
}
.scope--good .scope__eyebrow {
  color: rgba(95, 211, 154, 0.9);
}

/* ---- circular instrument field ---- */
.scope__field {
  position: relative;
  width: var(--scope);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--wash) 0%, transparent 60%),
    radial-gradient(
      circle at 50% 50%,
      transparent 38.2%,
      var(--ring) 38.7%,
      transparent 39.6%
    ),
    radial-gradient(
      circle at 50% 50%,
      transparent 65.2%,
      var(--ring) 65.7%,
      transparent 66.6%
    );
  box-shadow:
    inset 0 0 0 1px var(--edge),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    var(--field-shadow);
}
/* faint crosshair */
.scope__field::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(var(--ring), var(--ring)) center / 100% 1px no-repeat,
    linear-gradient(var(--ring), var(--ring)) center / 1px 100% no-repeat;
  opacity: 0.5;
  z-index: 0;
}
.scope--bad .scope__field {
  --wash: rgba(239, 126, 114, 0.055);
  --ring: rgba(239, 126, 114, 0.14);
  --edge: rgba(239, 126, 114, 0.18);
  --field-shadow: 0 30px 60px -42px rgba(0, 0, 0, 0.85);
  filter: saturate(0.82);
}
.scope--good .scope__field {
  --wash: rgba(95, 211, 154, 0.12);
  --ring: rgba(95, 211, 154, 0.2);
  --edge: rgba(95, 211, 154, 0.3);
  --field-shadow: 0 0 72px -16px rgba(95, 211, 154, 0.22),
    0 30px 60px -42px rgba(0, 0, 0, 0.85);
}

/* radar sweep */
.scope__sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 1;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--sweep) 22deg,
    transparent 64deg
  );
  -webkit-mask: radial-gradient(circle, transparent 9%, #000 13%);
  mask: radial-gradient(circle, transparent 9%, #000 13%);
  animation: scope-sweep 7s linear infinite;
}
.scope--bad .scope__sweep {
  --sweep: rgba(239, 126, 114, 0.14);
  opacity: 0.7;
  animation-duration: 9s;
}
.scope--good .scope__sweep {
  --sweep: rgba(95, 211, 154, 0.32);
}
@keyframes scope-sweep {
  to {
    transform: rotate(360deg);
  }
}

/* connection lines (connected only) */
.scope__links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: visible;
  filter: drop-shadow(0 0 4px rgba(95, 211, 154, 0.4));
}
.scope__links line {
  stroke: rgba(95, 211, 154, 0.55);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-dasharray: 2.5 4;
  animation: link-flow 1.5s linear infinite;
}
@keyframes link-flow {
  to {
    stroke-dashoffset: -6.5;
  }
}

/* proof fragments (node chips) */
.frag {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: clamp(32px, 13%, 44px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 11px;
  z-index: 3;
}
.frag svg {
  width: 54%;
  height: 54%;
}
.scope--bad .frag {
  color: rgba(239, 126, 114, 0.62);
  background: rgba(239, 126, 114, 0.05);
  border: 1px dashed rgba(239, 126, 114, 0.28);
  opacity: 0.74;
}
.scope--bad .frag--drift {
  opacity: 0.46;
  filter: blur(0.4px);
}
.scope--good .frag {
  color: var(--emerald);
  background: linear-gradient(
    180deg,
    rgba(95, 211, 154, 0.16),
    rgba(95, 211, 154, 0.05)
  );
  border: 1px solid rgba(95, 211, 154, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 18px -10px rgba(0, 0, 0, 0.7),
    0 0 16px -3px rgba(95, 211, 154, 0.34);
  animation: frag-pulse 3.4s var(--ease) infinite;
  animation-delay: var(--d, 0s);
}
@keyframes frag-pulse {
  0%,
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 6px 18px -10px rgba(0, 0, 0, 0.7), 0 0 13px -4px rgba(95, 211, 154, 0.3);
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 6px 18px -10px rgba(0, 0, 0, 0.7), 0 0 22px -1px rgba(95, 211, 154, 0.52);
  }
}

/* center core */
.scope__core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(44px, 19%, 62px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 4;
}
.scope__core svg {
  width: 50%;
  height: 50%;
}
.scope--bad .scope__core--empty {
  color: var(--text-faint);
  background: rgba(239, 126, 114, 0.04);
  border: 1px dashed rgba(239, 126, 114, 0.3);
}
.scope--good .scope__core {
  color: #062018;
  background: radial-gradient(circle at 50% 36%, #b6f1d4, var(--emerald) 58%, #34ad77);
  box-shadow:
    0 0 0 6px rgba(95, 211, 154, 0.1),
    0 0 0 1px rgba(95, 211, 154, 0.55),
    0 10px 30px -8px rgba(95, 211, 154, 0.5),
    0 0 36px -4px rgba(95, 211, 154, 0.6);
  animation: core-breathe 3.6s var(--ease) infinite;
}
@keyframes core-breathe {
  0%,
  100% {
    box-shadow: 0 0 0 6px rgba(95, 211, 154, 0.1),
      0 0 0 1px rgba(95, 211, 154, 0.55), 0 10px 30px -8px rgba(95, 211, 154, 0.45),
      0 0 30px -6px rgba(95, 211, 154, 0.5);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(95, 211, 154, 0.05),
      0 0 0 1px rgba(95, 211, 154, 0.62), 0 10px 30px -8px rgba(95, 211, 154, 0.55),
      0 0 46px -2px rgba(95, 211, 154, 0.72);
  }
}
.scope__badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 44%;
  height: 44%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1d8f5f;
  box-shadow: 0 0 0 2px var(--bg), 0 2px 6px -1px rgba(0, 0, 0, 0.5);
}
.scope__badge svg {
  width: 60%;
  height: 60%;
}

/* status chip */
.scope__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.42rem 0.95rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
}
.scope__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.scope__status--bad {
  color: var(--red);
  background: rgba(239, 126, 114, 0.09);
  border-color: rgba(239, 126, 114, 0.18);
}
.scope__status--bad .scope__dot {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(239, 126, 114, 0.16);
}
.scope__status--good {
  color: var(--emerald);
  background: rgba(95, 211, 154, 0.1);
  border-color: rgba(95, 211, 154, 0.24);
}
.scope__status--good .scope__dot {
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(95, 211, 154, 0.18);
  animation: dot-blink 2.4s var(--ease) infinite;
}
@keyframes dot-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* transformation flow connector */
.proof__flow {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  align-self: center;
}
.proof__flow-cap {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.proof__flow-bar {
  position: relative;
  width: 2px;
  height: 46px;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(239, 126, 114, 0.55),
    var(--copper),
    rgba(95, 211, 154, 0.85)
  );
}
.proof__flow-chevron {
  width: 19px;
  height: 19px;
  color: var(--emerald);
  transform: rotate(90deg);
}
@media (min-width: 880px) {
  .proof__flow {
    flex-direction: row;
    gap: 0.7rem;
  }
  .proof__flow-bar {
    width: 76px;
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(239, 126, 114, 0.55),
      var(--copper),
      rgba(95, 211, 154, 0.85)
    );
  }
  .proof__flow-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 38%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.6),
      transparent
    );
    transform: translateX(-130%);
    animation: flow-shimmer 2.8s var(--ease) infinite;
  }
  .proof__flow-chevron {
    transform: rotate(0);
  }
}
@keyframes flow-shimmer {
  to {
    transform: translateX(320%);
  }
}

/* ----- Process steps + pricing ----- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
  margin-top: 2.6rem;
}
.step {
  display: flex;
  gap: 1.1rem;
}
.step__d {
  flex-shrink: 0;
  width: 2.4rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--copper);
  padding-top: 0.1rem;
}
.step__t {
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.step__x {
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.55;
}

.pricing {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--hairline-2);
  padding: clamp(1.6rem, 1rem + 2vw, 2.6rem);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    80% 40% at 80% 0%,
    rgba(204, 128, 102, 0.12),
    transparent 60%
  );
  pointer-events: none;
}
.pricing__badge {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--copper);
  color: #160d08;
}
.pricing__t {
  font-size: var(--text-h3);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.pricing__price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.pricing__amount {
  font-size: clamp(2.6rem, 1.5rem + 3vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.pricing__unit {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-faint);
}
.pricing__sub {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--copper);
  margin: 0.6rem 0 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}
.pricing__list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}
.pricing__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-2);
}
.pricing__list svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--copper);
}
.pricing__fine {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.55;
}

/* ----- Footer ----- */
.footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(3.5rem, 2rem + 4vw, 6rem) 3rem;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.6rem;
  padding-bottom: 2.25rem;
  margin-bottom: 2.75rem;
  border-bottom: 1px solid var(--hairline);
}
.footer__links a {
  font-size: 0.9rem;
  color: var(--text-3);
  transition: color var(--dur) var(--ease);
}
.footer__links a:hover {
  color: var(--text);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 820px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 5rem;
  }
}
.footer__logo {
  height: 26px;
  width: auto;
  margin-bottom: 1.3rem;
}
.footer__blurb {
  color: var(--text-3);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 42ch;
  margin-bottom: 1.6rem;
}
.footer__meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-faint);
}
.faq__t {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.3rem;
}
.faq__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-3);
  font-size: 0.92rem;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.faq__item:hover {
  color: var(--text);
}
.faq__item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}
.faq__item:hover svg {
  transform: translateX(3px);
}

/* Footer FAQ → accessible accordion with visible answers (feeds FAQPage schema) */
details.faq {
  border-bottom: 1px solid var(--hairline);
}
details.faq > summary.faq__item {
  border-bottom: 0;
  list-style: none;
}
details.faq > summary.faq__item::-webkit-details-marker {
  display: none;
}
details.faq[open] > summary.faq__item svg,
details.faq[open] > summary.faq__item:hover svg {
  transform: rotate(90deg);
}
.faq__a {
  margin: 0;
  padding: 0 0 1.1rem;
  max-width: 52ch;
  color: var(--text-3);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================================================
   Reveal animations — contract matches /app.js
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  will-change: opacity, transform;
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* masked word reveal: app.js builds .word-mask > .word and toggles is-split/is-revealed */
[data-masked-reveal].is-split .word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.04em; /* room for descenders during slide */
}
[data-masked-reveal].is-split .word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform var(--dur-slow) var(--ease);
  will-change: transform;
}
[data-masked-reveal].is-split.is-revealed .word {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  [data-masked-reveal].is-split .word {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .fcard:hover,
  .bento__card:hover,
  .btn:hover,
  .engine:hover {
    transform: none;
  }
  .eyebrow::before {
    animation: none;
  }
  .scope__sweep,
  .scope__links line,
  .scope--good .frag,
  .scope--good .scope__core,
  .scope__status--good .scope__dot,
  .proof__flow-bar::after {
    animation: none;
  }
  .scope__sweep {
    opacity: 0.5;
  }
}
