/* =========================================================
   ALVANET v2 — AI MATURITY ASSESSMENT / CORPORATE
   White canvas · red accent · black ink · SF + New York
   ========================================================= */

body.qa { background: var(--bg-0); }

.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;
}

kbd {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-1);
  color: var(--ink-0);
  letter-spacing: 0;
}

.btn--sm { padding: 10px 16px; font-size: 12px; }

/* =========================================================
   NAV
   ========================================================= */
.qa-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 900;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 var(--gutter);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.qa-nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 600;
  color: var(--ink-0);
  letter-spacing: -0.012em;
}
.qa-nav__sep { color: var(--ink-4); font-weight: 300; }
.qa-nav__sub { color: var(--ink-2); font-weight: 400; font-size: 14px; letter-spacing: 0; }

.qa-nav__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  justify-self: center;
}
.qa-nav__tag { color: var(--red); }
.qa-nav__dot { color: var(--ink-4); }

.qa-nav__close {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-1);
  transition: background 300ms, border-color 300ms, color 300ms;
}
.qa-nav__close:hover {
  color: var(--red);
  border-color: var(--red);
  background: var(--red-soft);
}

@media (max-width: 820px) {
  .qa-nav__meta { display: none; }
  .qa-nav__sep, .qa-nav__sub { display: none; }
}

/* =========================================================
   PROGRESS
   ========================================================= */
.qa-progress {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 800;
  padding: 12px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85), transparent);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
body.qa.is-inquiry .qa-progress { opacity: 1; transform: translateY(0); }

.qa-progress__bar {
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.qa-progress__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width 700ms var(--ease-apple);
}
.qa-progress__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  white-space: nowrap;
  text-transform: uppercase;
}
.qa-progress__sep { color: var(--ink-4); margin: 0 4px; }

/* =========================================================
   MAIN / SCREENS
   ========================================================= */
.qa-main {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 100px;
  background: var(--bg-0);
}

.qa-screen {
  display: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-apple), transform 600ms var(--ease-apple);
}
.qa-screen.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   INTRO
   ========================================================= */
.qa-intro {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 100px) 0;
}
.qa-intro__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: block;
  margin-bottom: 24px;
}
.qa-intro__eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--red);
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 2px;
}
.qa-intro__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(40px, 6.8vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: var(--ink-0);
  margin-bottom: 28px;
  max-width: 18ch;
}
.qa-intro__title .accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}
.qa-intro__lede {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 58ch;
  margin-bottom: 40px;
}

.qa-intro__frameworks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-top: 1px solid var(--ink-0);
  margin-bottom: 32px;
}
@media (max-width: 900px) { .qa-intro__frameworks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .qa-intro__frameworks { grid-template-columns: 1fr; } }

.fw {
  background: var(--bg-0);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 300ms;
  position: relative;
}
.fw::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 400ms var(--ease-out);
}
.fw:hover { background: var(--bg-1); }
.fw:hover::before { width: 100%; }

.fw:last-child { border-right: 0; }

.fw__idx {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--red);
}
.fw__name {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-0);
  letter-spacing: -0.01em;
}
.fw__fn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.qa-intro__disclaimer {
  padding: 14px 18px;
  border-left: 3px solid var(--red);
  background: var(--red-soft);
  font-size: 13.5px;
  color: var(--ink-1);
  margin-bottom: 32px;
}
.qa-intro__disclaimer strong {
  color: var(--red-deep);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.qa-intro__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.qa-intro__hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

/* =========================================================
   QUESTION
   ========================================================= */
.qa-q {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 60px) 0;
}
.qa-q__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 32px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-0);
}
.qa-q__pillar { color: var(--red); }
.qa-q__sep { color: var(--ink-4); }

.qa-q__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 48px;
}
.qa-q__idx {
  font-family: var(--serif);
  font-style: italic;
  font-size: 64px;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.04em;
  padding-top: 12px;
  min-width: 80px;
}
.qa-q__text {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(26px, 4.2vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink-0);
  max-width: 32ch;
}

.qa-q__choices {
  border: 0;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qa-choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: var(--bg-0);
  cursor: pointer;
  transition: background 300ms, border-color 300ms;
  position: relative;
}
.qa-choice:hover {
  background: var(--bg-1);
  border-color: var(--line-2);
}
.qa-choice__key {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 4px 8px;
  min-width: 28px;
  text-align: center;
  transition: color 300ms, border-color 300ms, background 300ms;
}
.qa-choice__label {
  font-family: var(--sans);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: -0.012em;
}
.qa-choice__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.qa-choice__detail {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-3);
  letter-spacing: 0;
}
.qa-choice__pct {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.qa-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.qa-choice.is-selected {
  background: var(--red-soft);
  border-color: var(--red);
}
.qa-choice.is-selected .qa-choice__key {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
.qa-choice.is-selected .qa-choice__detail { color: var(--ink-2); }
.qa-choice.is-selected .qa-choice__pct { color: var(--red-deep); font-weight: 600; }

@media (max-width: 560px) {
  .qa-choice {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 12px;
    padding: 16px;
  }
  .qa-choice__pct {
    grid-column: 2;
    justify-self: start;
  }
}

.qa-q__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* =========================================================
   RESULTS
   ========================================================= */
.qa-results {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 60px) 0;
}
.qa-results__head {
  max-width: 800px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.qa-results__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: block;
  margin-bottom: 20px;
}
.qa-results__eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--red);
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 2px;
}
.qa-results__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(40px, 6.8vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: var(--ink-0);
  margin-bottom: 18px;
}
.qa-results__title .accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-0);
}
.qa-results__title .period { color: var(--red); font-style: normal; }

.qa-results__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 22px);
  color: var(--ink-2);
  max-width: 50ch;
  line-height: 1.4;
}

.qa-results__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  margin-bottom: clamp(48px, 7vw, 96px);
  align-items: start;
}
@media (max-width: 900px) { .qa-results__grid { grid-template-columns: 1fr; } }

.qa-score {
  padding: 36px;
  border: 1px solid var(--line);
  border-top: 1px solid var(--ink-0);
  background: var(--bg-0);
  position: relative;
}
.qa-score::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 64px;
  height: 3px;
  background: var(--red);
}
.qa-score__ring {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.qa-score__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.qa-score__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 92px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink-0);
}
.qa-score__pct {
  position: absolute;
  bottom: 80px;
  right: 50px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--red);
  font-weight: 600;
}
.qa-score__lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 6px;
  font-weight: 600;
}
.qa-score__summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.qa-score__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.qa-score__row span:last-child { color: var(--ink-0); font-weight: 600; }

/* Radar */
.qa-radar {
  aspect-ratio: 1 / 1;
  width: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 1px solid var(--ink-0);
  background: var(--bg-0);
  position: relative;
}
.qa-radar::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  width: 64px;
  height: 3px;
  background: var(--red);
}

/* Pillars */
.qa-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-top: 1px solid var(--ink-0);
  margin-bottom: clamp(48px, 7vw, 96px);
  background: var(--bg-0);
}
@media (max-width: 780px) { .qa-pillars { grid-template-columns: 1fr; } }

.pl {
  padding: clamp(20px, 2.5vw, 32px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 300ms;
  position: relative;
}
.pl::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 500ms var(--ease-out);
}
.pl:hover { background: var(--bg-1); }
.pl:hover::before { width: 100%; }

.pl__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.pl__idx {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--red);
  text-transform: uppercase;
  font-weight: 600;
}
.pl__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 28px);
  letter-spacing: -0.025em;
  color: var(--ink-0);
  line-height: 1.1;
}
.pl__score {
  font-family: var(--serif);
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.03em;
  color: var(--ink-0);
  white-space: nowrap;
}
.pl__score .pct-sign { color: var(--red); font-size: 0.6em; margin-left: 1px; }

.pl__bar {
  height: 3px;
  background: var(--line);
  overflow: hidden;
}
.pl__bar span {
  display: block;
  height: 100%;
  background: var(--red);
  width: 0%;
  transition: width 1100ms var(--ease-apple);
}

.pl__band {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  text-transform: uppercase;
}

.pl__fw {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.pl__recs {
  list-style: none;
  padding: 14px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.pl__rec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-1);
}
.pl__rec-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--red);
  padding-top: 4px;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Actions (2-col) */
.qa-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-top: 1px solid var(--ink-0);
  margin-bottom: 48px;
  background: var(--bg-0);
  position: relative;
}
.qa-actions::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 120px;
  height: 3px;
  background: var(--red);
}
@media (max-width: 780px) { .qa-actions { grid-template-columns: 1fr; } }

.qa-actions__col {
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.qa-actions__col:last-child { border-right: 0; }
@media (max-width: 780px) {
  .qa-actions__col { border-right: 0; border-bottom: 1px solid var(--line); }
  .qa-actions__col:last-child { border-bottom: 0; }
}

.qa-actions__h {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.025em;
  color: var(--ink-0);
  line-height: 1.15;
}
.qa-actions__p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 42ch;
}
.qa-form {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.qa-form__input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-0);
  font-family: var(--sans);
  font-size: 13.5px;
  transition: border-color 300ms, background 300ms;
  letter-spacing: -0.005em;
}
.qa-form__input::placeholder { color: var(--ink-3); }
.qa-form__input:focus {
  outline: none;
  border-color: var(--red);
  background: var(--bg-0);
}
.qa-form__note {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-top: 4px;
  min-height: 14px;
}

/* Consent checkbox */
.qa-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  cursor: pointer;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 54ch;
}
.qa-consent input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.qa-consent__box {
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: var(--bg-0);
  margin-top: 2px;
  display: inline-block;
  flex-shrink: 0;
  position: relative;
  transition: border-color 200ms, background 200ms;
}
.qa-consent__box::after {
  content: "";
  position: absolute;
  top: 2px; left: 5px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 200ms var(--ease-out);
}
.qa-consent input:checked ~ .qa-consent__box {
  background: var(--red);
  border-color: var(--red);
}
.qa-consent input:checked ~ .qa-consent__box::after {
  transform: rotate(45deg) scale(1);
}
.qa-consent input:focus-visible ~ .qa-consent__box {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.qa-consent__text a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.qa-consent__text a:hover { color: var(--red-deep); }

.qa-restart {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.qa-fine {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  max-width: 70ch;
  line-height: 1.6;
  text-transform: uppercase;
}

/* =========================================================
   RADAR SVG
   ========================================================= */
.radar-ring { fill: none; stroke: rgba(10,10,10,0.08); stroke-width: 0.5; }
.radar-axis { stroke: rgba(10,10,10,0.1); stroke-width: 0.5; }
.radar-poly {
  fill: rgba(229, 35, 43, 0.1);
  stroke: var(--red);
  stroke-width: 1.5;
  stroke-linejoin: round;
  transform-origin: 200px 200px;
}
.radar-dot { fill: var(--red); }
.radar-label {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--ink-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.radar-scale {
  font-family: var(--mono);
  font-size: 8px;
  fill: var(--ink-4);
  letter-spacing: 0.08em;
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .qa-screen, .pl__bar span, .qa-progress__bar span { transition: none; }
}
