/* Self-assessment: the assessment page (as-*) and the home-page teaser (as-teaser-*).
   Shared header, footer, buttons and eyebrows come from styles.css. */

/* ===================================================================
   Assessment page
   =================================================================== */

.as-stage {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 48px 0 90px;
  background: var(--navy);
  color: #fff;
}
.as-stage::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -15%;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.14), transparent 65%);
  pointer-events: none;
}
.as-wrap {
  position: relative;
  max-width: 860px;
}
.as-breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  color: #8fa6ba;
  font-size: 12px;
}
.as-breadcrumb a {
  color: #a9ded8;
}
.as-breadcrumb a:hover {
  color: #fff;
}

/* Introduction */
.as-intro h1 {
  max-width: 720px;
  margin: 16px 0 20px;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}
.as-intro h1 span {
  display: block;
  color: var(--teal);
}
.as-lead {
  max-width: 620px;
  margin: 0 0 30px;
  color: #b9c8d6;
  font-size: 17px;
  line-height: 1.75;
}
.as-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin: 0 0 34px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  list-style: none;
  color: #b9c8d6;
  font-size: 14px;
}
.as-facts b {
  margin-right: 5px;
  color: #fff;
  font-size: 15px;
}
.as-start:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}
.as-privacy {
  margin: 16px 0 0;
  color: #8fa6ba;
  font-size: 12px;
}
.as-load-error {
  max-width: 620px;
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 3px solid #e0b35d;
  border-radius: 6px;
  background: rgba(224, 179, 93, 0.12);
  color: #f3e3c4;
  font-size: 13px;
}
.as-load-error a {
  color: #fff;
  text-decoration: underline;
}

/* Cards */
.as-card {
  padding: 30px 32px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(3, 18, 33, 0.35);
}

/* Question */
.as-progress {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: #6b7c8a;
  font-size: 12px;
  font-weight: 700;
}
.as-area {
  color: #0f7a5a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}
.as-progress-bar {
  height: 6px;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8efed;
}
.as-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 0.35s ease;
}
.as-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.as-q {
  padding: 0;
  color: var(--navy);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.as-q:focus {
  outline: none;
}
.as-hint {
  margin: 10px 0 0;
  color: #6b7c8a;
  font-size: 14px;
}
.as-options {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.as-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1.5px solid #dfe6eb;
  border-radius: 12px;
  background: #fbfdfc;
  color: #2b4256;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.as-option:hover {
  border-color: #9fdcd2;
  background: #f4fbf9;
}
.as-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.as-option-mark {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 2px solid #b9c7d0;
  border-radius: 50%;
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.as-option:has(input:checked) {
  border-color: var(--teal);
  background: #effaf7;
  color: var(--navy);
  font-weight: 600;
}
.as-option input:checked + .as-option-mark {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 4px #fff;
  background: var(--teal);
}
.as-option:has(input:focus-visible) {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.as-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
.as-back,
.as-retake {
  padding: 10px 4px;
  border: 0;
  background: none;
  color: #4d6275;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.as-back:hover,
.as-retake:hover {
  color: var(--navy);
}
.as-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Result */
.as-results {
  display: grid;
  gap: 18px;
}
.as-result-head h2 {
  margin: 14px 0 12px;
  color: var(--navy);
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.as-result-head h2:focus {
  outline: none;
}
.as-result-head > p {
  max-width: 680px;
  margin: 0;
  color: #4d6275;
  font-size: 15.5px;
  line-height: 1.75;
}
.as-result-head .as-note {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
}
.as-note-supported {
  background: #e7f6ef;
  color: #0f5132;
}
.as-note-unsupported,
.as-note-unknown {
  background: #fff6e5;
  color: #7a5a1f;
}
.as-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
.as-result-grid h3 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: -0.02em;
}
.as-breakdown ul {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.as-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: #2b4256;
  font-size: 14px;
  font-weight: 600;
}
.as-bar-head b {
  color: #6b7c8a;
  font-size: 12px;
  font-weight: 700;
}
.as-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8efed;
}
.as-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #0f7a5a);
  transition: width 0.8s ease;
}
.as-bar-note {
  margin: 18px 0 0;
  color: #7b8b98;
  font-size: 12px;
}
.as-opportunity {
  border-top: 4px solid var(--teal);
}
.as-kicker {
  display: block;
  margin-bottom: 8px;
  color: #0f7a5a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.as-opportunity h3 {
  margin-bottom: 10px;
}
.as-opportunity > p {
  margin: 0;
  color: #4d6275;
  font-size: 14.5px;
  line-height: 1.7;
}
.as-try {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
}
.as-try span {
  color: #a9ded8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.as-try p {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.as-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 8px;
}
.as-cta .as-retake {
  color: #b9c8d6;
}
.as-cta .as-retake:hover {
  color: #fff;
}
.as-disclaimer {
  margin: 0;
  color: #8fa6ba;
  font-size: 12px;
}

/* ===================================================================
   Home-page teaser
   =================================================================== */

.as-teaser {
  background: #fff;
}
.as-teaser-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}
.as-teaser h2 {
  margin: 22px 0 0;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 47px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.055em;
}
.as-teaser h2 span {
  color: #119e93;
}
.as-teaser-copy > p {
  max-width: 540px;
  margin: 18px 0 0;
  color: #637387;
  font-size: 15px;
  line-height: 1.8;
}
.as-teaser-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}
.as-teaser-facts li {
  padding: 7px 13px;
  border-radius: 999px;
  background: #eef6f3;
  color: var(--green);
  font-size: 12.5px;
  font-weight: 700;
}
.as-teaser-preview {
  display: block;
  padding: 26px 26px 24px;
  border: 1px solid #d5e4e0;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.as-teaser-preview:hover {
  transform: translateY(-3px);
}
.as-teaser-preview:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}
/* The preview is a link, so it is built from spans; give them block layout. */
.as-teaser-preview > span,
.as-teaser-preview .as-progress-bar {
  display: block;
}
.as-teaser-preview .as-progress {
  display: flex;
}
.as-teaser-preview .as-progress-bar {
  margin-bottom: 20px;
}
.as-teaser-q {
  display: block;
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.as-teaser-preview .as-options {
  display: grid;
  margin-top: 0;
  gap: 8px;
}
.as-teaser-preview .as-option {
  padding: 11px 14px;
  font-size: 13.5px;
  cursor: inherit;
}
.as-teaser-preview .as-option.is-picked {
  border-color: var(--teal);
  background: #effaf7;
  color: var(--navy);
  font-weight: 600;
}
.as-teaser-preview .as-option.is-picked .as-option-mark {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 4px #fff;
  background: var(--teal);
}

/* ===================================================================
   Responsive and motion
   =================================================================== */

@media (max-width: 900px) {
  .as-result-grid,
  .as-teaser-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .as-teaser-grid {
    gap: 40px;
  }
}
@media (max-width: 540px) {
  .as-stage {
    padding: 32px 0 64px;
  }
  .as-card {
    padding: 22px 18px;
  }
  .as-lead {
    font-size: 15px;
  }
  .as-option {
    padding: 13px 14px;
    font-size: 14.5px;
  }
  .as-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .as-nav .as-next,
  .as-cta .as-demo {
    width: 100%;
  }
  .as-cta {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (prefers-reduced-motion: reduce) {
  .as-progress-bar i,
  .as-bar i,
  .as-option,
  .as-teaser-preview {
    transition: none;
  }
}
