/* ==========================================================================
   The 2-minute assessment — shared component.
   Ported 2026-09-21 from the DF360 partner site (assets/css/site.css .aq-*),
   renamed .ax-* because the homepage handoff ships an older quiz of its own
   that uses aq- ids. Colours map DF360's red onto the house tokens.
   Markup is injected by /assets/js/assess.js; any page opts in by loading
   that script and giving a link data-assess (optionally data-goal).
   ========================================================================== */

.ax-overlay { position: fixed; inset: 0; z-index: 90; }
.ax-overlay[hidden] { display: none; }
html.ax-open, html.ax-open body { overflow: hidden; }

.ax-scrim {
  position: absolute; inset: 0;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 64px 24px;
  background: rgba(8, 10, 12, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  overflow-y: auto;
}
.ax-panel {
  position: relative; overflow: hidden;
  width: min(960px, 100%);
  background: #0f0d0b;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--apex-radius, 14px);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .6);
  font-family: var(--apex-font-ui);
}
/* the hero photograph, blurred back until it is texture rather than subject */
.ax-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 58% 38%;
  filter: blur(24px) brightness(.62) saturate(.9);
  transform: scale(1.14);
  opacity: .8; pointer-events: none;
}
.ax-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(158deg, rgba(15, 13, 11, .46) 0%, rgba(15, 13, 11, .8) 56%, rgba(15, 13, 11, .95) 100%);
}
.ax-head, .ax-meter, .ax-body, .ax-foot { position: relative; z-index: 1; }
.ax-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 26px 36px 20px;
}
.ax-eyebrow {
  display: block; margin-bottom: 7px;
  font: 800 11px/1 var(--apex-font-mono); letter-spacing: .15em; text-transform: uppercase;
  color: var(--apex-red-bright, #ff5a4d);
}
.ax-step-of { font-size: 13px; letter-spacing: .04em; color: #8f877e; }
.ax-close {
  font-size: 28px; line-height: 1; padding: 6px 12px; margin: -6px -12px 0 0;
  background: none; border: 0; cursor: pointer;
  color: #8f877e; transition: color .15s;
}
.ax-close:hover { color: #f5f2ed; }
.ax-close:focus-visible, .ax-opt:focus-visible, .ax-back:focus-visible,
.ax-go:focus-visible, .ax-more:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.ax-meter { height: 3px; margin: 0 36px; background: rgba(255, 255, 255, .13); }
.ax-meter i {
  display: block; width: 0; height: 100%; background: var(--apex-red-bright, #ff5a4d);
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
}

.ax-body { padding: 34px 36px 8px; min-height: 384px; }  /* holds the panel steady between steps */
.ax-count {
  display: block; margin-bottom: 14px;
  font: 700 11px/1 var(--apex-font-mono); letter-spacing: .16em; text-transform: uppercase;
  color: #7a736b;
}
.ax-q {
  margin: 0 0 26px;
  font-size: 38px; font-weight: 900; letter-spacing: -.03em; line-height: 1.06;
  color: #f5f2ed; max-width: 20ch;
}
.ax-opts { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ax-opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ax-opts--5 > .ax-opt:last-child { grid-column: span 2; }
.ax-opt {
  display: flex; align-items: center; gap: 13px;
  padding: 18px 20px; text-align: left; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 700; color: #f5f2ed;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .15); border-radius: 10px;
  transition: background .16s, border-color .16s;
}
.ax-opt:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .34); }
.ax-opt.is-on { background: rgba(211, 7, 4, .18); border-color: var(--apex-red-bright, #ff5a4d); }
.ax-tick {
  flex: 0 0 auto; position: relative; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .34); transition: background .16s, border-color .16s;
}
.ax-opt.is-on .ax-tick { background: var(--apex-red, #d30704); border-color: var(--apex-red-bright, #ff5a4d); }
.ax-opt.is-on .ax-tick::after {
  content: ""; position: absolute; left: 5px; top: 2px;
  width: 4px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

/* the payoff: a protocol card built out of their three answers */
.ax-card { border-left: 3px solid var(--apex-red-bright, #ff5a4d); padding-left: 26px; }
.ax-card-prog {
  display: block; margin-bottom: 10px;
  font: 800 11px/1 var(--apex-font-mono); letter-spacing: .15em; text-transform: uppercase;
  color: var(--apex-red-bright, #ff5a4d);
}
.ax-card-goal {
  margin: 0 0 14px;
  font-size: 46px; font-weight: 900; letter-spacing: -.035em; line-height: 1; color: #f5f2ed;
}
.ax-card-copy { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: #d9d2ca; max-width: 52ch; }
.ax-card-price { margin: 0 0 26px; font: 700 13px/1.4 var(--apex-font-mono);
                 letter-spacing: .08em; text-transform: uppercase; color: #cfc7be; }
.ax-matched {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 28px; border-top: 1px solid rgba(255, 255, 255, .15);
}
.ax-matched > div { padding: 14px 18px 0 0; }
.ax-matched > div + div { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .15); }
.ax-matched dt {
  font: 700 10.5px/1 var(--apex-font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: #7a736b; margin-bottom: 6px;
}
.ax-matched dd { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; color: #f5f2ed; }
.ax-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ax-go { display: inline-flex; align-items: center; min-height: 54px; font-size: 15px; padding: 0 26px; }
.ax-more { font-size: 14.5px; font-weight: 800; color: var(--apex-red-bright, #ff5a4d); }
.ax-more:hover { color: #fff; }

.ax-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 26px;
  padding: 18px 36px 26px;
}
.ax-back { font-size: 13.5px; font-weight: 700; color: #8f877e; background: none; border: 0;
           cursor: pointer; white-space: nowrap; padding: 8px 0; }
.ax-back:hover { color: #f5f2ed; }
.ax-legal { margin: 0 0 0 auto; max-width: 62ch; font-size: 12px; line-height: 1.55; color: #7a736b; }

@media (max-width: 760px) {
  .ax-scrim { padding: 0; }
  .ax-panel { width: 100%; min-height: 100%; border: 0; border-radius: 0; }
  .ax-head, .ax-body, .ax-foot { padding-left: 20px; padding-right: 20px; }
  .ax-meter { margin: 0 20px; }
  .ax-q { font-size: 28px; }
  .ax-opts, .ax-opts--3 { grid-template-columns: 1fr; }
  .ax-opts--5 > .ax-opt:last-child { grid-column: auto; }
  .ax-opt { min-height: 56px; }
  .ax-card-goal { font-size: 34px; }
  .ax-matched { grid-template-columns: 1fr; }
  .ax-matched > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .15); }
  .ax-foot { flex-direction: column-reverse; align-items: stretch; gap: 16px;
             padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
  .ax-legal { margin-left: 0; }
  /* thumb-reachable: the CTA goes full width and the card loses its indent */
  .ax-cta { flex-direction: column; align-items: stretch; gap: 14px; }
  .ax-go { width: 100%; justify-content: center; }
  .ax-more { align-self: flex-start; padding: 8px 0; }
  .ax-card { padding-left: 18px; }
  .ax-head { padding-top: calc(20px + env(safe-area-inset-top)); }
  .ax-body { min-height: 0; padding-top: 26px; }
  .ax-back { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .ax-meter i { transition: none; }
}
