.accuracy-example {
  --plot-height: clamp(7.25rem, 16vw, 11.25rem);
  display: grid;
  grid-template: "heading heading" auto "plot readout" auto / minmax(0, 1fr) minmax(8.5rem, 22%);
  align-items: start;
  gap: 1.25rem clamp(1rem, 3vw, 2.25rem);
  margin-top: clamp(1.05rem, 3vw, 2rem);
  padding: clamp(.9rem, 2.45vw, 1.6rem);
  border: 1px solid #6e87b975;
  border-radius: 1rem;
  background: radial-gradient(ellipse at 100% 0%, #6953982a 0%, transparent 68%), #141b33;
  box-shadow: 0 .95rem 2.3rem #0b10252e;
}

.landing .accuracy-heading {
  grid-area: heading;
  font-size: clamp(1.2rem, 2.7vw, 1.65rem);
  line-height: 1.25;
}

.accuracy-plot {
  grid-area: plot;
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  align-items: start;
  gap: .45rem;
}

.accuracy-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: var(--plot-height);
  color: var(--muted);
  font-size: .73rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.accuracy-days {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.accuracy-days::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--plot-height);
  pointer-events: none;
  background:
    linear-gradient(#8cafe23f 0 0) top / 100% 1px no-repeat,
    linear-gradient(#8cafe233 0 0) center / 100% 1px no-repeat,
    linear-gradient(#8cafe252 0 0) bottom / 100% 1px no-repeat;
}

.accuracy-day { min-width: 0; text-align: center; }

.accuracy-bar {
  position: relative;
  display: block;
  width: 100%;
  height: var(--plot-height);
  padding: 0;
  border: 0;
  border-radius: .36rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.accuracy-bar:focus-visible { outline: 2px solid var(--sun); outline-offset: -2px; }

.accuracy-fill {
  position: absolute;
  inset-block-end: 0;
  left: 50%;
  inline-size: min(57%, 2.7rem);
  block-size: var(--accuracy);
  border-radius: .33rem .33rem .08rem .08rem;
  background: linear-gradient(#a995f5, #685abc 88%);
  transform-origin: center bottom;
  translate: -50% 0;
}

.accuracy-bar.is-current .accuracy-fill {
  background: linear-gradient(#cefdf9, #6dced6 53%, #4178ab);
  box-shadow: 0 0 .9rem #80fdf866;
}

.accuracy-day-tick {
  display: block;
  margin-top: .3rem;
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.accuracy-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.accuracy-readout {
  grid-area: readout;
  align-self: center;
  display: grid;
  gap: .38rem;
  padding: .7rem 0 .7rem clamp(.8rem, 2vw, 1.25rem);
  border-inline-start: 1px solid #8cafe240;
}

.accuracy-result {
  display: grid;
  justify-items: start;
  gap: .3rem;
  color: #f3efff;
  font-size: .93rem;
  font-weight: 750;
  line-height: 1.15;
}

.accuracy-result strong {
  color: #a5fbef;
  font-size: clamp(1.65rem, 3.65vw, 2.65rem);
  font-weight: 880;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.iq-weights { margin-block: .7rem .28rem; }

.iq-weights-track {
  display: grid;
  grid-template-columns: 60fr 30fr 10fr;
  height: .5rem;
  overflow: hidden;
  border-radius: 99px;
}

.iq-weights-track span:nth-child(1), .iq-weight-key li:nth-child(1) { --iq-weight-color: #92e7e0; }
.iq-weights-track span:nth-child(2), .iq-weight-key li:nth-child(2) { --iq-weight-color: #b99df7; }
.iq-weights-track span:nth-child(3), .iq-weight-key li:nth-child(3) { --iq-weight-color: #f7cf86; }
.iq-weights-track span { background: var(--iq-weight-color); }
.iq-weights-track span + span { box-shadow: inset .1rem 0 #19162e; }

.iq-weight-key {
  display: flex;
  flex-wrap: wrap;
  gap: .32rem .8rem;
  margin: .5rem 0 0;
  padding: 0;
  list-style: none;
}

.iq-weight-key li {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.35;
}

.iq-weight-key li::before {
  content: "";
  flex: none;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--iq-weight-color);
  transform: translateY(-.04em);
}

.iq-weight-key strong { color: #f4efff; font-variant-numeric: tabular-nums; }

@media (max-width: 43rem) {
  .accuracy-example {
    --plot-height: clamp(6.25rem, 30vw, 8.5rem);
    grid-template: "heading" auto "plot" auto "readout" auto / minmax(0, 1fr);
    row-gap: .95rem;
  }
  .accuracy-readout {
    align-items: center;
    gap: .65rem;
    padding: .65rem 0 0;
    border-inline-start: 0;
    border-block-start: 1px solid #8cafe240;
  }
  .accuracy-result { display: flex; align-items: baseline; gap: .8rem; }
}

@media (max-width: 24rem) {
  .accuracy-example { padding-inline: .62rem; }
  .accuracy-plot { grid-template-columns: minmax(0, 1fr); }
  .accuracy-axis { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .accuracy-example.pon-revealed .accuracy-fill {
    animation: pon-accuracy-refine .62s cubic-bezier(.18, .75, .39, 1) var(--accuracy-delay) both;
  }
}

@keyframes pon-accuracy-refine {
  from { transform: scaleY(.14); opacity: .62; }
  to { transform: scaleY(1); opacity: 1; }
}
