/* ==========================================================================
   Zigtal — Assessments (accent: indigo → cyan)
   Page-only styles. Shared tokens/components live in styles.css.
   ========================================================================== */

/* Grid/flex children that hold nowrap mock UI must be allowed to shrink */
.as-panel > *,
.as-s2s > *,
.as-ctx > *,
.as-graph > *,
.as-res-head > *,
.as-glance > *,
.as-tablist > * {
  min-width: 0;
}

/* Gradient score ring (indigo → cyan) — reuses the shared .ring animation */
.as-ring {
  background: conic-gradient(var(--accent) 0%, var(--accent-2) calc(var(--pv) * 1%), rgba(255, 255, 255, 0.08) 0);
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 40%, transparent));
}

.as-k {
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.as-sub {
  display: block;
  color: var(--text-3);
  font-size: 12px;
}

@keyframes as-bob {
  50% { translate: 0 -7px; }
}

@keyframes as-dash {
  to { stroke-dashoffset: -20; }
}

@keyframes as-travel {
  0% { left: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

@keyframes as-travel-y {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: calc(100% - 8px); opacity: 0; }
}

@keyframes as-ripple {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(1.9); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.as-hero {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.as-hero .aurora i:nth-child(1) { --o: 0.34; left: 46%; top: -26%; }
.as-hero .aurora i:nth-child(2) { --o: 0.2; left: 74%; top: 22%; }
.as-hero .aurora i:nth-child(3) { --c: #5b8cff; --o: 0.14; left: -12%; top: 36%; }

.as-hero .grid-floor {
  height: 40%;
  opacity: 0.5;
}

.as-hero .page-hero-copy {
  gap: 1.4rem;
}

.as-hero .page-title {
  /* sized so "Turn assessments" holds one line beside the visual */
  font-size: clamp(2.45rem, 6vw - 0.6rem, 4.25rem);
}

.as-hero .breadcrumbs span[aria-current] {
  color: var(--accent-text);
}

/* Signature visual: assessment results window + AI interpretation card */
.as-hero-visual {
  padding-top: 6px;
}

.as-stage {
  position: relative;
}

.as-results {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line-2));
}

.as-results .window-body {
  gap: 18px;
}

.as-results .thresholds {
  gap: 14px;
}

.as-res-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.as-res-id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.as-res-id strong {
  display: block;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
}

.as-res-id div > span {
  display: block;
  color: var(--text-3);
  font-size: 12px;
}

.as-res-score {
  display: flex;
  align-items: center;
  gap: 12px;
}

.as-res-score .ring {
  --size: 64px;
  --stroke: 6px;
}

.as-res-score-txt {
  display: grid;
  justify-items: start;
  gap: 6px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
}

.as-res-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Scanning band — the window "reads" the results */
.as-scan {
  position: absolute;
  inset: 45px 0 0;
  overflow: hidden;
  pointer-events: none;
}

.as-scan::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 26%;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 5%, transparent) 60%, color-mix(in srgb, var(--accent-2) 10%, transparent));
  transform: translateY(-110%);
  animation: as-scan 7s cubic-bezier(0.45, 0, 0.55, 1) 1.6s infinite;
}

@keyframes as-scan {
  0% { transform: translateY(-110%); opacity: 1; }
  55% { transform: translateY(390%); opacity: 1; }
  56%, 100% { transform: translateY(390%); opacity: 0; }
}

.as-interpret {
  width: min(330px, 84%);
  margin-top: -42px;
  /* overhang the window, but never closer than 12px to the screen edge */
  margin-right: max(-26px, calc(12px - var(--gutter)));
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line-2));
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 65%),
    rgba(14, 17, 34, 0.94);
  box-shadow: 0 30px 70px -18px rgba(0, 0, 0, 0.9), 0 0 50px -16px color-mix(in srgb, var(--accent) 70%, transparent);
  animation: as-bob 7s ease-in-out infinite;
}

.as-interpret .viz-title {
  font-size: 14px;
  line-height: 1.35;
}

.as-interpret .th-track {
  height: 6px;
}

.as-interpret .ai-tag span[data-type] {
  min-width: 1ch;
}

@media (max-width: 640px) {
  .as-interpret {
    width: min(330px, 92%);
    margin-top: -48px;
    margin-right: 0;
    margin-left: auto;
  }

  .as-res-score .ring {
    --size: 54px;
    --stroke: 5px;
  }
}

/* At-a-glance strip (hero checklist) */
.as-glance {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.as-glance li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.4;
  transition: background 0.3s;
}

.as-glance li + li {
  border-left: 1px solid var(--line);
}

.as-glance li:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

@media (max-width: 760px) {
  .as-glance {
    grid-template-columns: minmax(0, 1fr);
  }

  .as-glance li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* --------------------------------------------------------------------------
   Capabilities — auto-advancing tabs
   -------------------------------------------------------------------------- */
.as-caps .section-head .lead {
  text-wrap: pretty;
}

.as-tabs {
  display: grid;
  gap: 14px;
}

.as-tablist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.as-tab.tab {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006)), var(--panel);
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
  transition: border-color 0.3s, background 0.3s, color 0.3s, box-shadow 0.4s;
}

.as-tab .icon-box {
  opacity: 0.55;
  filter: saturate(0.4);
  transition: opacity 0.3s, filter 0.3s;
}

.as-tab-text {
  display: grid;
  gap: 4px;
}

.as-tab-text em {
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  transition: color 0.3s;
}

.as-tab:hover {
  border-color: var(--line-2);
  color: var(--text);
}

.as-tab[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    var(--panel-2);
  color: #fff;
  box-shadow: 0 22px 50px -26px color-mix(in srgb, var(--accent) 90%, transparent);
}

.as-tab[aria-selected="true"] .icon-box {
  opacity: 1;
  filter: none;
}

.as-tab[aria-selected="true"] .as-tab-text em {
  color: var(--accent-text);
}

.as-tab .tab-progress {
  height: 2px;
}

.as-panels {
  position: relative;
  display: grid;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, color-mix(in srgb, var(--accent-2) 8%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    var(--panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.as-panels::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 90%, white 10%), transparent);
}

/* All panels share one grid cell, so the frame never jumps between tabs */
.as-panel {
  grid-area: 1 / 1;
  display: grid;
  align-items: center;
  gap: 30px;
  padding: clamp(22px, 3.4vw, 48px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out), visibility 0s;
}

.as-panels > .as-panel[hidden] {
  display: grid;
  visibility: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, visibility 0s 0.3s;
}

@media (min-width: 960px) {
  .as-panel {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 52px;
  }
}

.as-panel-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
}

.as-panel-num {
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5vw, 4.8rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 1.2px color-mix(in srgb, var(--accent) 75%, transparent);
}

.as-panel-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.as-panel-copy > p:not(.ai-tag) {
  max-width: 40ch;
  color: var(--text-2);
  font-size: 1.06rem;
}

.as-panel-copy .link-arrow {
  margin-top: 4px;
}

.as-panel-visual {
  position: relative;
  isolation: isolate;
}

.as-panel-visual::before {
  content: "";
  position: absolute;
  inset: 10% 6%;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 40%, transparent), transparent);
  filter: blur(50px);
  opacity: 0.5;
  pointer-events: none;
}

.as-panel-visual .window-body {
  gap: 18px;
}

@media (max-width: 960px) {
  .as-tablist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .as-tablist {
    gap: 8px;
  }

  .as-tab.tab {
    align-items: flex-start;
    min-height: 0;
    padding: 13px 14px 15px;
    border-radius: 14px;
    font-size: 0.92rem;
  }

  .as-tab .icon-box {
    display: none;
  }

  .as-panel-num {
    font-size: 2.8rem;
  }
}

/* 01 · Score → signal */
.as-s2s {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) 56px minmax(0, 1.38fr);
  align-items: stretch;
}

.as-raw,
.as-signal {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.as-raw strong {
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.as-raw small {
  margin-left: 3px;
  color: var(--text-4);
  font-size: 14px;
  letter-spacing: 0;
}

.as-signal {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background:
    radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.02);
}

.as-signal-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.as-signal-main .ring {
  --size: 52px;
  --stroke: 5px;
}

.as-signal-main strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.as-pipe {
  position: relative;
  align-self: center;
  height: 2px;
  margin: 0 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--line-3), var(--accent));
}

.as-pipe::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
}

.as-pipe i {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px var(--accent-2);
  animation: as-travel 1.8s linear infinite;
}

.as-pipe i:nth-child(2) { animation-delay: -0.6s; }
.as-pipe i:nth-child(3) { animation-delay: -1.2s; }

.as-sigs {
  list-style: none;
  display: grid;
  gap: 8px;
}

.as-sigs li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.as-sigs strong {
  display: block;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
}

.as-sigs div > span {
  display: block;
  overflow: hidden;
  color: var(--text-3);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 560px) {
  .as-s2s {
    grid-template-columns: minmax(0, 1fr);
  }

  .as-raw {
    grid-template-columns: auto auto;
    align-items: baseline;
    justify-content: space-between;
  }

  .as-raw strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 32px;
  }

  .as-pipe {
    justify-self: center;
    width: 2px;
    height: 30px;
    margin: 4px 0;
    background: linear-gradient(180deg, var(--line-3), var(--accent));
  }

  .as-pipe::after {
    right: -3px;
    top: auto;
    bottom: -1px;
    transform: rotate(135deg);
  }

  .as-pipe i {
    top: 0;
    left: -3px;
    animation-name: as-travel-y;
  }
}

/* 02 · Proficiency bar by level */
.as-levels {
  display: grid;
  gap: 8px;
}

.as-plot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  height: 172px;
  border-bottom: 1px solid var(--line-2);
  background-image: linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 100% 25%;
}

.as-lv {
  position: relative;
}

.as-lv i {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: calc(var(--bar) * 1%);
  border-radius: 9px 9px 3px 3px;
  background: linear-gradient(180deg, rgba(62, 230, 176, 0.85), rgba(62, 230, 176, 0.12));
  box-shadow: 0 0 24px -8px rgba(62, 230, 176, 0.6);
  transform-origin: 50% 100%;
  transition: transform 1s var(--ease-out) calc(var(--k, 0) * 90ms + 0.15s);
}

.as-lv.is-above i {
  background: linear-gradient(180deg, rgba(255, 181, 71, 0.9), rgba(255, 181, 71, 0.1));
  box-shadow: 0 0 24px -8px rgba(255, 181, 71, 0.7);
}

.as-lv b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--bar) * 1% - 22px);
  color: #04140e;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  transition: opacity 0.5s calc(var(--k, 0) * 90ms + 0.8s);
}

.as-lv.is-above b {
  color: #241500;
}

.as-score-line {
  position: absolute;
  z-index: 2;
  left: -6px;
  right: -6px;
  bottom: calc(var(--score) * 1%);
  height: 0;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.9);
  transition: bottom 1.3s var(--ease-out) 0.55s, opacity 0.4s 0.55s;
}

.as-score-line span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--grad-btn);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  white-space: nowrap;
  box-shadow: 0 6px 20px -6px rgba(124, 92, 255, 0.9);
}

.as-axis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-align: center;
}

.js .animate .as-lv i {
  transform: scaleY(0.04);
}

.js .animate .as-lv b {
  opacity: 0;
}

.js .animate .as-score-line {
  bottom: 0;
  opacity: 0;
}

.js .animate.is-in .as-lv i,
.js .is-in .animate .as-lv i {
  transform: none;
}

.js .animate.is-in .as-lv b,
.js .is-in .animate .as-lv b {
  opacity: 1;
}

.js .animate.is-in .as-score-line,
.js .is-in .animate .as-score-line {
  bottom: calc(var(--score) * 1%);
  opacity: 1;
}

.as-rolebar {
  display: grid;
  gap: 10px;
  padding-bottom: 22px;
}

.as-rolebar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-2);
  font-size: 12.5px;
}

.as-rolebar-head .mono {
  color: var(--text);
  font-size: 12px;
}

.as-rolebar .th-track {
  height: 10px;
}

.as-rolebar .th-track b {
  top: -6px;
  bottom: -6px;
}

.as-rolebar .th-track b em {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  padding: 1px 7px;
  border-radius: 6px;
  background: #fff;
  color: #0b1020;
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* 03 · Role and goal context */
.as-ctx {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) 52px minmax(0, 1.28fr);
  align-items: center;
}

.as-ctx-person {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 22px 12px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background:
    radial-gradient(100% 80% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.02);
  text-align: center;
}

.as-ctx-person .avatar {
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  font-size: 15px;
  box-shadow: 0 0 0 4px rgba(5, 6, 11, 0.7), 0 0 30px color-mix(in srgb, var(--accent) 60%, transparent);
}

.as-ctx-person strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.as-ctx-person .chip {
  margin-top: 6px;
}

.as-ctx-lines {
  align-self: stretch;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.as-ctx-lines path,
.as-graph-lines path {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 65%, transparent);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  vector-effect: non-scaling-stroke;
  animation: as-dash 1.1s linear infinite;
}

.as-ctx-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.as-ctx-list li {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.as-ctx-list .as-k {
  color: var(--accent-text);
}

.as-ctx-list strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.as-ctx-list .meter {
  height: 5px;
}

@media (max-width: 560px) {
  .as-ctx {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .as-ctx-lines {
    display: none;
  }

  .as-ctx-person {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: start;
    align-items: center;
    gap: 2px 12px;
    padding: 14px;
    text-align: left;
  }

  .as-ctx-person .avatar {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .as-ctx-person .chip {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin: 0;
  }
}

/* 04 · Signal graph */
.as-graph {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas:
    "a c l"
    "s c p";
  align-items: center;
  gap: 26px 44px;
  padding: 6px 0;
}

.as-graph-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.as-node {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent),
    #0e1124;
}

.as-node--a { grid-area: a; }
.as-node--s { grid-area: s; }
.as-node--l { grid-area: l; }
.as-node--p { grid-area: p; }

.as-node-k {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  font-size: 12px;
}

.as-node-k::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.as-node strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.as-node .meter {
  height: 5px;
}

.as-core {
  position: relative;
  z-index: 1;
  grid-area: c;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.as-core .ring {
  --size: 112px;
  --stroke: 9px;
}

.as-core::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 112px;
  height: 112px;
  margin-left: -56px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  animation: as-ripple 3s var(--ease-out) infinite;
  pointer-events: none;
}

.as-core-label {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(12, 15, 29, 0.95);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .as-graph {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "c c"
      "a s"
      "l p";
    gap: 10px;
  }

  .as-graph-lines {
    display: none;
  }

  .as-core {
    margin-bottom: 8px;
  }

  .as-core .ring {
    --size: 92px;
    --stroke: 8px;
  }

  .as-core::before {
    width: 92px;
    height: 92px;
    margin-left: -46px;
  }
}

/* --------------------------------------------------------------------------
   Outcomes — light sheet with giant outlined numbers
   -------------------------------------------------------------------------- */
.as-proof {
  padding: clamp(1rem, 3vw, 2rem) clamp(8px, 1.5vw, 20px);
}

.as-proof-sheet {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-radius: clamp(24px, 3vw, 40px);
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(124, 131, 255, 0.22), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(34, 211, 238, 0.14), transparent 70%),
    linear-gradient(rgba(11, 16, 32, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(11, 16, 32, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
    #f4f6fc;
  color: #0b1020;
  overflow: hidden;
  isolation: isolate;
}

.as-proof-head {
  display: grid;
  justify-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.as-proof .h2 {
  color: #0b1020;
}

.as-proof .hl {
  --hl-grad: linear-gradient(100deg, #4f46e5, #2f5be0 50%, #0891b2);
}

.as-proof .stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.as-proof .stat {
  gap: 1.1rem;
  padding: clamp(24px, 3vw, 38px);
  border-radius: 26px;
  border: 1px solid rgba(11, 16, 32, 0.08);
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.82));
  box-shadow: 0 30px 60px -36px rgba(40, 46, 120, 0.4);
  overflow: hidden;
}

.as-proof .stat::after {
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
}

.as-proof .stat strong {
  font-size: clamp(4.4rem, 2.6rem + 5.4vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  color: transparent;
  background: linear-gradient(100deg, #4f46e5, #5b8cff 55%, #06b6d4) no-repeat 0 0 / 0% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.6px #6366f1;
  transition: background-size 1.3s var(--ease-out) calc(var(--d, 0s) + 0.9s);
}

.as-proof .stat.is-in strong {
  background-size: 100% 100%;
}

.as-proof .stat p {
  color: #3d4566;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.4;
}

.as-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.as-stat-no {
  color: #8a90ad;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.as-stat-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.09);
  color: #4f46e5;
  transition: transform 0.45s var(--ease-spring), background 0.3s;
}

.as-stat-icon svg {
  width: 24px;
  height: 24px;
}

.as-proof .stat:hover .as-stat-icon {
  background: rgba(99, 102, 241, 0.16);
  transform: rotate(-8deg) scale(1.08);
}

@media (max-width: 760px) {
  .as-proof .stats {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Integrations hub
   -------------------------------------------------------------------------- */
.as-int .hub {
  width: min(100%, 400px);
}

/* Centre each chip with the `translate` property (applied after the counter-rotation),
   so chips stay pinned to their spoke ends instead of wobbling around them. */
.as-int .hub-orbit > span {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line-2));
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.9);
  transform: none;
  translate: -50% -50%;
}

.as-int .hub-orbit > span:first-of-type {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  background: color-mix(in srgb, var(--accent) 22%, rgba(12, 15, 29, 0.96));
}

.as-spoke {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50%;
  height: 1px;
  transform-origin: 0 50%;
  rotate: var(--a, 0deg);
  background: linear-gradient(90deg, transparent 20%, color-mix(in srgb, var(--accent) 55%, transparent));
}

.as-spoke::after {
  content: "";
  position: absolute;
  top: -2.5px;
  left: 100%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px var(--accent-2);
  animation: as-inbound 3s ease-in infinite;
  animation-delay: var(--pd, 0s);
}

@keyframes as-inbound {
  0% { left: 100%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 26%; opacity: 0; }
}

@media (max-width: 560px) {
  .as-int .hub {
    width: min(100%, 268px);
  }

  .as-int .hub-orbit > span {
    padding: 5px 9px;
    font-size: 0.68rem;
  }

  .as-int .hub-core {
    width: 76px;
    height: 76px;
    border-radius: 22px;
  }

  .as-int .hub-core img {
    width: 42px;
    height: 42px;
  }
}

.as-int .hub-core::before,
.as-int .hub-core::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  animation: as-ripple 3.2s var(--ease-out) infinite;
  pointer-events: none;
}

.as-int .hub-core::after {
  animation-delay: 1.6s;
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
#as-cta {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

#as-cta .cta-panel .aurora i:nth-child(1) { --o: 0.3; left: 30%; top: -40%; }
#as-cta .cta-panel .aurora i:nth-child(2) { --o: 0.18; left: 70%; top: 30%; }

.as-cta-icon {
  margin-bottom: 0.2rem;
}

.as-cta-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.as-cta-float {
  position: absolute;
  animation: as-bob 6s ease-in-out infinite;
}

.as-cta-float > * {
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.as-cta-float .tag {
  padding: 6px 12px;
  font-size: 12.5px;
}

.as-cta-float .chip {
  padding: 6px 12px;
  background: color-mix(in srgb, var(--accent) 22%, rgba(12, 15, 29, 0.9));
}

.as-cta-float--1 { left: 7%; top: 20%; }
.as-cta-float--2 { right: 8%; top: 16%; animation-delay: -1.5s; }
.as-cta-float--3 { left: 9%; bottom: 22%; animation-delay: -3s; }
.as-cta-float--4 { right: 6%; bottom: 26%; animation-delay: -4.5s; }

@media (max-width: 1080px) {
  .as-cta-floats {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion: everything visible, nothing moving
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .js .animate .as-lv i {
    transform: none !important;
  }

  .js .animate .as-lv b {
    opacity: 1;
  }

  .js .animate .as-score-line {
    bottom: calc(var(--score) * 1%);
    opacity: 1;
  }

  .as-proof .stat strong {
    background-size: 100% 100%;
  }

  .as-scan,
  .as-pipe i,
  .as-spoke::after {
    display: none;
  }
}
