﻿/* Shared Axis29 form-experience primitives (assessment + consultation).
   Self-contained â€” these pages do not load hero.css / home.css. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: #050505;
  max-width: 100%;
}

body.axis-fx {
  background: #050505;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  --axis-mono: "DM Mono", ui-monospace, monospace;
  overflow-x: clip;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.axis-fx {
  --fx-signal: #3e63e0;
  --fx-card: #0b0b0d;
  --fx-input: #111114;
  --fx-secondary: #17171a;
  --fx-muted: #86868b;
  --fx-border: rgba(255, 255, 255, 0.08);
  --fx-radius: 4px;
  --fx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fx-dur: 280ms;
  --fx-dur-step: 500ms;
  --fx-destructive: #d4183d;
  overflow-x: clip;
}

.axis-fx-logo {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  font-family: Archivo, Inter, sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  color: #fff;
  user-select: none;
}

.axis-fx-logo span {
  color: var(--fx-signal, #3e63e0);
}

/* These flows use their own chrome â€” never the site nav / footer. */
body.axis-assess-page .axis-nav-wrap,
body.axis-assess-page .axis-drawer,
body.axis-assess-page > .axis-footer,
body.axis-consult-page .axis-nav-wrap,
body.axis-consult-page .axis-drawer,
body.axis-consult-page > .axis-footer {
  display: none !important;
}

.axis-fx-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(120% 90% at 50% 0%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, black 30%, transparent 78%);
}

.axis-fx-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.axis-fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  border: 0;
  border-radius: var(--fx-radius);
  background: var(--fx-signal);
  color: #fff;
  font-family: var(--axis-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  padding: 16px 32px;
  transition: transform 200ms var(--fx-ease), filter 200ms var(--fx-ease), color 200ms var(--fx-ease), border-color 200ms var(--fx-ease);
}

.axis-fx-btn img {
  width: 16px;
  height: 16px;
  display: block;
  transition: transform 200ms var(--fx-ease);
}

.axis-fx-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.axis-fx-btn:hover:not(:disabled) img {
  transform: translateX(4px);
}

.axis-fx-btn:focus-visible {
  outline: 2px solid var(--fx-signal);
  outline-offset: 4px;
}

.axis-fx-btn:disabled {
  background: var(--fx-secondary);
  color: rgba(134, 104, 139, 0.6);
  color: rgba(134, 134, 139, 0.6);
  cursor: not-allowed;
  transform: none;
}

.axis-fx-btn:disabled img {
  opacity: 0.4;
  transform: none;
}

.axis-fx-btn--compact {
  padding: 14px 28px;
  font-size: 12px;
  gap: 10px;
}

.axis-fx-btn--full {
  width: 100%;
}

.axis-fx-btn--ghost {
  background: transparent;
  border: 1px solid var(--fx-border);
  color: var(--fx-muted);
  padding: 14px 20px;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.axis-fx-btn--ghost:hover:not(:disabled) {
  transform: none;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.axis-fx-btn--ghost img {
  width: 16px;
  height: 16px;
}

.axis-fx-btn--disabled-outline:disabled {
  background: transparent;
  border: 1px solid var(--fx-border);
  color: var(--fx-muted);
}

.axis-fx-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(134, 134, 139, 0.5);
  flex-shrink: 0;
}

.axis-fx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--axis-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fx-signal);
}

.axis-fx-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--fx-signal);
}

.axis-fx-screen {
  display: none;
}

.axis-fx-screen[hidden],
.axis-fx-screen:not(.is-active) {
  display: none !important;
}

.axis-fx-screen.is-active {
  display: block;
}

.axis-fx-screen.is-enter {
  animation: axis-fx-in var(--fx-dur) var(--fx-ease) both;
}

.axis-fx-screen.is-exit {
  animation: axis-fx-out var(--fx-dur) var(--fx-ease) both;
}

@keyframes axis-fx-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes axis-fx-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-18px);
  }
}

.axis-fx-pane.is-enter {
  animation: axis-fx-pane-in var(--fx-dur) var(--fx-ease) both;
}

.axis-fx-pane.is-exit {
  animation: axis-fx-pane-out var(--fx-dur) var(--fx-ease) both;
}

@keyframes axis-fx-pane-in {
  from {
    opacity: 0;
    transform: translateX(var(--fx-dir, 24px));
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes axis-fx-pane-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(var(--fx-dir-exit, -24px));
  }
}

.axis-ok {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}

.axis-ok:not([hidden]) {
  pointer-events: auto;
}

.axis-ok__veil {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 420ms var(--fx-ease);
}

.axis-ok__aurora {
  position: absolute;
  width: min(70vw, 640px);
  height: min(70vw, 640px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 99, 224, 0.32) 0%, rgba(62, 99, 224, 0.08) 42%, transparent 70%);
  filter: blur(12px);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 700ms var(--fx-ease), transform 900ms var(--fx-ease);
}

.axis-ok__burst {
  position: absolute;
  width: 220px;
  height: 220px;
  pointer-events: none;
}

.axis-ok__burst i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(62, 99, 224, 0.45);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.35);
}

.axis-ok.is-on .axis-ok__veil {
  opacity: 1;
}

.axis-ok.is-on .axis-ok__aurora {
  opacity: 1;
  transform: scale(1);
}

.axis-ok.is-on .axis-ok__burst i {
  animation: axis-ok-ring 1100ms var(--fx-ease) forwards;
}

.axis-ok.is-on .axis-ok__burst i:nth-child(2) {
  animation-delay: 90ms;
}

.axis-ok.is-on .axis-ok__burst i:nth-child(3) {
  animation-delay: 180ms;
}

.axis-ok__card {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 48px 36px 36px;
  text-align: center;
  background: linear-gradient(180deg, rgba(17, 17, 20, 0.96), rgba(8, 8, 10, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(62, 99, 224, 0.18), 0 28px 80px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(28px) scale(0.94);
  transition: opacity 500ms var(--fx-ease), transform 700ms var(--fx-ease);
}

.axis-ok.is-on .axis-ok__card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.axis-ok.is-out .axis-ok__card,
.axis-ok.is-out .axis-ok__veil,
.axis-ok.is-out .axis-ok__aurora {
  opacity: 0;
}

.axis-ok.is-out .axis-ok__card {
  transform: translateY(12px) scale(0.98);
}

.axis-ok__mark {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
}

.axis-ok__mark svg {
  width: 88px;
  height: 88px;
  display: block;
  filter: drop-shadow(0 0 18px rgba(62, 99, 224, 0.55));
}

.axis-ok__halo {
  fill: none;
  stroke: #3e63e0;
  stroke-width: 2;
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
}

.axis-ok__tick {
  fill: none;
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}

.axis-ok.is-on .axis-ok__halo {
  animation: axis-ok-draw 700ms var(--fx-ease) 80ms forwards;
}

.axis-ok.is-on .axis-ok__tick {
  animation: axis-ok-draw 520ms var(--fx-ease) 420ms forwards;
}

.axis-ok__spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #7ea0ff;
  opacity: 0;
}

.axis-ok.is-on .axis-ok__spark {
  animation: axis-ok-spark 900ms var(--fx-ease) 480ms forwards;
}

.axis-ok__spark:nth-child(1) { --sx: 0; --sy: -46px; }
.axis-ok__spark:nth-child(2) { --sx: 40px; --sy: -24px; animation-delay: 520ms; }
.axis-ok__spark:nth-child(3) { --sx: 40px; --sy: 24px; animation-delay: 560ms; }
.axis-ok__spark:nth-child(4) { --sx: 0; --sy: 46px; animation-delay: 600ms; }
.axis-ok__spark:nth-child(5) { --sx: -40px; --sy: 24px; animation-delay: 640ms; }
.axis-ok__spark:nth-child(6) { --sx: -40px; --sy: -24px; animation-delay: 680ms; }

.axis-ok__kicker {
  margin: 0 0 10px;
  color: #3e63e0;
  font-family: var(--axis-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
}

.axis-ok__card h2 {
  margin: 0 0 10px;
  font-family: Archivo, Inter, sans-serif;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.axis-ok__copy {
  margin: 0 0 28px;
  color: var(--fx-muted);
  font-size: 16px;
  line-height: 1.5;
}

.axis-ok__card .axis-fx-btn {
  min-width: 180px;
}

@keyframes axis-ok-ring {
  0% { opacity: 0.7; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.85); }
}

@keyframes axis-ok-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes axis-ok-spark {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0.2); }
}

body.is-axis-ok {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .axis-fx-btn,
  .axis-fx-btn img {
    transition: none;
  }

  .axis-fx-screen.is-enter,
  .axis-fx-screen.is-exit,
  .axis-fx-pane.is-enter,
  .axis-fx-pane.is-exit {
    animation-duration: 1ms;
    animation-name: axis-fx-fade;
  }

  .axis-ok__veil,
  .axis-ok__aurora,
  .axis-ok__card,
  .axis-ok__halo,
  .axis-ok__tick,
  .axis-ok__spark,
  .axis-ok__burst i {
    animation: none !important;
    transition: none !important;
  }

  .axis-ok.is-on .axis-ok__veil,
  .axis-ok.is-on .axis-ok__aurora,
  .axis-ok.is-on .axis-ok__card {
    opacity: 1;
    transform: none;
  }

  .axis-ok.is-on .axis-ok__halo,
  .axis-ok.is-on .axis-ok__tick {
    stroke-dashoffset: 0;
  }

  @keyframes axis-fx-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
