/* ==================================================
   Header
   ================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out),
    backdrop-filter 220ms var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom-color: var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 10px;
  height: 10px;
  background: var(--amber);
  display: inline-block;
}

.nav-desktop {
  display: none;
  gap: 1.75rem;
}

.nav-desktop a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-muted);
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-phone {
  display: none;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}

.header-phone:hover {
  color: var(--amber);
}

.header-burger {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  color: var(--ink);
}

.header-burger:hover {
  background: var(--paper-deep);
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
  .header-phone {
    display: inline-flex;
    margin-right: 0.5rem;
  }
  .header-burger {
    display: none;
  }
}

/* ==================================================
   Hero
   ================================================== */

.hero {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 3rem;
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }
}

/* Dubai skyline silhouette — sits behind the hero content as a warm-cream
   line backdrop. Bottom-anchored, scales horizontally with viewport. */
.hero-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--paper-edge);
  opacity: 0.55;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.hero-copy {
  max-width: 640px;
}

.hero-copy .h1 {
  margin-top: 1rem;
}

.hero-lede {
  margin-top: 1rem;
  max-width: 52ch;
}

.hero-ctas {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.hero-trust {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.hero-trust li {
  position: relative;
  padding-right: 1.25rem;
}

.hero-trust li::after {
  content: "·";
  position: absolute;
  right: 0.2rem;
  top: 0;
  color: var(--ink-muted);
}

.hero-trust li:last-child {
  padding-right: 0;
}

.hero-trust li:last-child::after {
  display: none;
}

/* The hero assessment card — replaces the editorial ticket. */
.hero-assessment-wrap {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

.hero-assessment {
  margin: 0;
}

/* ==================================================
   Trust bar
   ================================================== */

.trust-bar {
  background: var(--paper-deep);
  border-block: 1px solid var(--rule);
  padding-block: 2.5rem;
}

.trust-bar-inner {
  text-align: center;
}

.trust-eyebrow {
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.trust-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.25rem;
}

@media (min-width: 640px) {
  .trust-stats {
    gap: 1.5rem 2.5rem;
  }
}

.trust-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}

.trust-stats strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 28px);
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.trust-stats span {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-align: center;
}

/* ==================================================
   Footer
   ================================================== */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 4rem 1.5rem;
  margin-top: 0; /* content above supplies spacing */
}

.site-footer .brand {
  color: var(--paper);
}

.site-footer a {
  color: color-mix(in srgb, var(--paper) 72%, transparent);
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}

.site-footer a:hover {
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-col > * + * {
  margin-top: 0.75rem;
}

.footer-tagline,
.footer-address,
.footer-note {
  color: color-mix(in srgb, var(--paper) 60%, transparent);
  font-size: 14px;
  max-width: 38ch;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 15px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid color-mix(in srgb, var(--paper) 15%, transparent);
  font-family: var(--font-sans);
  font-size: 12px;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}

@media (min-width: 600px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.muted-light {
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}

/* ==================================================
   Nav sheet (mobile)
   ================================================== */

.nav-sheet-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 2rem;
}

.nav-sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  padding: 0.75rem 0;
  text-decoration: none;
  letter-spacing: -0.015em;
}

.nav-mobile a:hover {
  color: var(--amber);
}

.nav-sheet-cta {
  margin-top: auto;
  padding-top: 2rem;
}

.nav-sheet-cta .btn {
  width: 100%;
}

/* ==================================================
   Eligibility centerpiece
   ================================================== */

.eligibility-head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.eligibility-head .h2 {
  letter-spacing: -0.02em;
}

.eligibility-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.eligibility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .eligibility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .eligibility-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Filter visibility — cards stay in DOM, just fade/hide via data-filter.  */
.eligibility-grid .elig-card {
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.eligibility-grid[data-filter="investment"] .elig-card:not([data-group="investment"]),
.eligibility-grid[data-filter="talent"] .elig-card:not([data-group="talent"]),
.eligibility-grid[data-filter="merit"] .elig-card:not([data-group="merit"]),
.eligibility-grid[data-filter="profession"] .elig-card:not([data-group="profession"]) {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  display: none;
}

.elig-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
}

/* Card image bleeds to both card edges, anchored to the top.
   `width: calc(100% + 3.5rem)` plus the symmetric negative left/right
   margins is the only way to actually extend a `width: 100%` element
   into both sides of its parent's padding — negative margin-right
   alone does not visually expand the box. */
.elig-card-image {
  width: calc(100% + 3.5rem);
  margin: -1.75rem -1.75rem 0;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.elig-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.elig-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--amber);
}

.elig-icon-wrap .icon {
  width: 28px;
  height: 28px;
}

.elig-name {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .elig-name {
    font-size: 24px;
  }
}

.elig-threshold {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: -0.15rem;
}

@media (min-width: 768px) {
  .elig-threshold {
    font-size: 28px;
  }
}

.elig-desc {
  font-size: 14px;
  line-height: 1.5;
}

.elig-reqs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 13px;
  color: var(--ink-muted);
}

.elig-reqs li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.elig-reqs .icon {
  margin-top: 0.1rem;
}

.elig-cta {
  margin-top: auto;
  align-self: flex-start;
}

/* Dark callout under the grid */
.eligibility-callout {
  margin-top: 4rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.eligibility-callout .callout-copy {
  max-width: 52ch;
}

.eligibility-callout .callout-copy .h3 {
  color: var(--paper);
}

.eligibility-callout .callout-copy .body {
  color: color-mix(in srgb, var(--paper) 70%, transparent);
  margin-top: 0.5rem;
}

@media (min-width: 800px) {
  .eligibility-callout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 3rem;
  }
}

/* ==================================================
   Shared section head
   ================================================== */

.section-head {
  max-width: 720px;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==================================================
   About
   ================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 5rem;
  }

  .about-copy {
    position: sticky;
    top: 100px;
  }
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-copy .h2 {
  margin-top: 0.5rem;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem 1.75rem;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 56px;
  }
}

.stat-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

/* ==================================================
   Benefits
   ================================================== */

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.benefit-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit-card .h3 {
  letter-spacing: -0.01em;
}

/* ==================================================
   Process
   ================================================== */

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

@media (min-width: 900px) {
  .process-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
  .process-steps::before {
    content: "";
    position: absolute;
    top: 44px;
    left: 10%;
    right: 10%;
    border-top: 1px solid var(--rule);
    z-index: 0;
  }
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--paper);
  padding-top: 0.25rem;
}

.process-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--amber);
}

@media (min-width: 900px) {
  .process-num {
    font-size: 52px;
  }
}

.process-step .h3 {
  margin-top: 0.25rem;
}

/* ==================================================
   Why us
   ================================================== */

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .why-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 5rem;
  }
}

.why-head .h2 {
  margin-top: 0.75rem;
}

.why-video {
  margin-top: 2rem;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  counter-reset: why;
}

.why-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.why-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.why-num {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: 36px;
  line-height: 1;
  color: var(--amber);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.why-item .h3 {
  margin-bottom: 0.4rem;
}

/* ==================================================
   Testimonials
   ================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: var(--container-pad);
    gap: 1rem;
    padding-bottom: 1rem;
    margin-inline: calc(-1 * var(--container-pad));
    padding-inline: var(--container-pad);
  }

  .testimonial {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
}

.testimonial-attrib {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 13px;
  /* Pin the attribution to the card bottom so all 3 attributions line up
     horizontally regardless of quote length. */
  margin-top: auto;
}

.testimonial-attrib > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.testimonial-attrib strong {
  font-weight: 500;
  color: var(--ink);
}

.testimonial-role {
  font-size: 12px;
}

.testimonial-mark {
  width: 10px;
  height: 10px;
  background: var(--amber);
  display: inline-block;
  margin-top: 0.3rem;
  flex-shrink: 0;
}

/* Real-image avatar variant — same 44px circle as the placeholder. */
.testimonial-avatar--real {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-deep);
}

.testimonial-avatar--real img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-attrib-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

/* ==================================================
   FAQ
   ================================================== */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 4rem;
    align-items: start;
  }

  .faq-head {
    position: sticky;
    top: 100px;
  }
}

.faq-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-cta {
  margin-top: 0.75rem;
  align-self: flex-start;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

/* ==================================================
   Final CTA
   ================================================== */

.final-cta {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding-block: 6rem;
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 768px) {
  .final-cta {
    padding-block: 7rem;
  }
}

/* Dubai skyline backdrop at 20% opacity. The dark ink shows through, giving
   the section a tonal wash rather than a literal photo. */
.final-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-inline: auto;
}

.final-cta .h2 {
  color: var(--paper);
  margin-top: 0.5rem;
}

.final-cta .body-l {
  color: color-mix(in srgb, var(--paper) 75%, transparent);
}

.final-cta-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

/* ==================================================
   Contact section
   ================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 4rem;
    align-items: start;
  }
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-points {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 14px;
  color: var(--ink-muted);
}

.contact-points li {
  padding-left: 1rem;
  position: relative;
}

.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: var(--amber);
}

.contact-form-wrap {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-inner-light);
}

/* ==================================================
   Lead form
   ================================================== */

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-fineprint {
  font-size: 12px;
  line-height: 1.45;
  margin-top: -0.25rem;
}

.form-submit {
  align-self: flex-start;
}

/* ==================================================
   Contact dialog head
   ================================================== */

.contact-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-dialog-head .h3 {
  margin-top: 0.25rem;
}

/* ==================================================
   Eligibility Assessment — multi-step lead form
   Used in the hero right column. Six steps + success.
   ================================================== */

.assessment {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  /* Lets the View Transitions API screenshot just this element on each step
     change. The default UA crossfade gets tuned below. */
  view-transition-name: assessment-card;
}

@media (min-width: 480px) {
  .assessment {
    padding: 1.25rem 1.4rem;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(assessment-card),
  ::view-transition-new(assessment-card) {
    animation-duration: 260ms;
    animation-timing-function: var(--ease-out);
  }
}

@media (min-width: 800px) {
  .assessment {
    padding: 1.4rem 1.75rem;
  }
}

.assessment-head {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.assessment-progress-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.assessment-progress-row .eyebrow {
  margin: 0;
  color: var(--amber);
}

.assessment-step-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.assessment-progress {
  position: relative;
  height: 4px;
  background: var(--paper-edge);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.assessment-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  background: var(--amber);
  border-radius: inherit;
  transition: width 320ms var(--ease-out);
}

.assessment-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.assessment-help {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
}

/* ----- Choices (radio-list pattern) ----- */

.assessment-choices {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.assessment-choice {
  appearance: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  min-height: 44px; /* WCAG 2.5.5 touch-target minimum */
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 0.625rem;
  font-family: var(--font-sans);
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out);
}

/* Choice with hint — restore vertical alignment so radio dot lines up with label */
.assessment-choice:has(.assessment-choice-hint) {
  align-items: flex-start;
}

.assessment-choice:has(.assessment-choice-hint) .assessment-choice-radio {
  margin-top: 2px;
}

.assessment-choice:hover,
.assessment-choice:focus-visible {
  border-color: var(--ink);
  background: var(--paper);
  outline: none;
}

.assessment-choice.is-selected {
  border-color: var(--amber);
  background: color-mix(in srgb, var(--amber-soft) 30%, var(--paper));
}

.assessment-choice-radio {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-muted);
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: border-color 160ms var(--ease-out);
}

.assessment-choice:hover .assessment-choice-radio,
.assessment-choice:focus-visible .assessment-choice-radio {
  border-color: var(--ink);
}

.assessment-choice.is-selected .assessment-choice-radio {
  border-color: var(--amber);
}

.assessment-choice-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  transform: scale(0);
  transition: transform 160ms var(--ease-out);
}

.assessment-choice.is-selected .assessment-choice-radio-dot {
  transform: scale(1);
}

.assessment-choice-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.assessment-choice-label {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.assessment-choice-hint {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-muted);
}

/* ----- Input steps ----- */

.assessment-input-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.assessment-input-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.assessment-input {
  appearance: none;
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.assessment-input:focus,
.assessment-input:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 25%, transparent);
}

.assessment-input:invalid:not(:placeholder-shown) {
  border-color: var(--amber-deep);
}

.assessment-input-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.assessment-input-row:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 25%, transparent);
}

.assessment-input-row .assessment-input {
  border: 0;
  border-radius: 0;
  flex: 1;
}

.assessment-input-row .assessment-input:focus {
  box-shadow: none;
}

.assessment-input-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 0.85rem;
  background: var(--paper-deep);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  border-right: 1px solid var(--rule);
}

/* ----- Footer (back + Continue) ----- */

.assessment-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  margin-top: 0.25rem;
}

.assessment-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 0;
  padding: 0.5rem 0.25rem; /* extra hit area without changing visual weight */
  margin-left: -0.25rem;   /* offset so the visible label aligns left */
  min-height: 36px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  transition: color 160ms var(--ease-out);
}

.assessment-back:hover,
.assessment-back:focus-visible {
  color: var(--ink);
  outline: none;
}

.assessment-foot-spacer {
  display: inline-block;
  width: 1px;
}

.assessment-continue {
  min-height: 44px;
}

.assessment-continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ----- Submitted (success) screen ----- */

.assessment[data-step="submitted"] .assessment-title {
  font-size: clamp(22px, 2.6vw, 28px);
}

.assessment-matches {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

.assessment-matches.is-multi {
  grid-template-columns: 1fr 1fr;
}

.assessment-match-tile {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.assessment-match-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.1rem;
}

.assessment-match-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.assessment-match-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 450;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

.assessment-match-threshold {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin: 0;
}

.assessment-result-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
}

@media (min-width: 560px) {
  .assessment-result-cta {
    flex-direction: row;
    align-items: center;
  }
}
