/* ==========================================================================
   Inspection Readiness Check Section
   ========================================================================== */

.ready {
  background: var(--indigo, #002B5C);
  color: #fff;
  padding: 72px 0 76px;
  overflow: hidden;
}

.ready .head {
  max-width: 700px;
  margin-bottom: 34px;
}

.ready .head .eyebrow {
  font-family: var(--display, 'Gotham', 'Montserrat', system-ui, sans-serif);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.ready .head h2 {
  font-family: var(--display, 'Gotham', 'Montserrat', system-ui, sans-serif);
  color: #fff;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.ready .head p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  margin-top: 10px;
  margin-bottom: 0;
}

.ready .grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: start;
}

/* Question List */
.ql {
  list-style: none;
  display: grid;
  gap: 8px;
  counter-reset: q;
  padding: 0;
  margin: 0;
}

.ql li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  transition: background 0.25s, border-color 0.25s;
  box-sizing: border-box;
}

.ql li.y {
  border-color: rgba(255, 255, 255, 0.35);
}

.ql li.n {
  background: rgba(237, 28, 36, 0.14);
  border-color: rgba(237, 28, 36, 0.55);
}

.ql li .t {
  font-family: var(--body, 'Open Sans', system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.35;
  color: #fff;
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 0;
}

.ql li .t::before {
  counter-increment: q;
  content: counter(q, decimal-leading-zero);
  font-family: var(--display, 'Gotham', 'Montserrat', system-ui, sans-serif);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  padding-top: 4px;
}

.ql li .t small {
  grid-column: 2;
  display: block;
  font-family: var(--body, 'Open Sans', system-ui, sans-serif);
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

/* Answer Buttons */
.ans {
  display: inline-flex;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  overflow: hidden;
  flex: none;
  box-sizing: border-box;
}

.ans button {
  font-family: var(--display, 'Gotham', 'Montserrat', system-ui, sans-serif);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  box-shadow: none;
  outline: none;
  line-height: normal;
  border-radius: 0;
  display: block;
}

.ans button + button {
  border-left: 1.5px solid rgba(255, 255, 255, 0.2);
}

.ans button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ans button[aria-pressed="true"] {
  background: #fff;
  color: var(--indigo, #002B5C);
}

.ans button[data-v="0"][aria-pressed="true"] {
  background: var(--crimson, #ED1C24);
  color: #fff;
}

.ans button[data-v="u"][aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* Score Card */
.score {
  position: sticky;
  top: 110px;
  background: #fff;
  color: var(--ink, #1C2230);
  border-radius: 10px;
  padding: 24px 24px 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  box-sizing: border-box;
}

.score h3 {
  font-family: var(--display, 'Gotham', 'Montserrat', system-ui, sans-serif);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist, #A5A4A4);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.gauge {
  position: relative;
  width: 220px;
  margin: 8px auto 0;
}

.gauge svg {
  width: 100%;
  display: block;
  overflow: visible;
}

.gauge .bg {
  fill: none;
  stroke: var(--frost, #EDEDED);
  stroke-width: 16;
  stroke-linecap: round;
}

.gauge .fg {
  fill: none;
  stroke: var(--crimson, #ED1C24);
  stroke-width: 16;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), stroke 0.4s;
}

.gauge .fg.mid {
  stroke: #F59E0B;
}

.gauge .fg.ok {
  stroke: var(--indigo, #002B5C);
}

.gauge .num {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  font-family: var(--display, 'Gotham', 'Montserrat', system-ui, sans-serif);
  font-weight: 800;
  font-size: 44px;
  color: var(--indigo, #002B5C);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.gauge .num small {
  display: block;
  font-family: var(--body, 'Open Sans', system-ui, sans-serif);
  font-weight: 400;
  font-size: 11.5px;
  color: var(--ink-soft, #4A5568);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.score .verdict {
  margin-top: 10px;
  font-family: var(--display, 'Gotham', 'Montserrat', system-ui, sans-serif);
  font-weight: 700;
  color: var(--indigo, #002B5C);
  font-size: 17px;
  min-height: 22px;
  line-height: 1.6;
}

.score .why {
  font-family: var(--body, 'Open Sans', system-ui, sans-serif);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft, #4A5568);
  margin-top: 6px;
  min-height: 40px;
}

.score .gapsl {
  list-style: none;
  text-align: left;
  margin-top: 12px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ink, #1C2230);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding: 0;
  margin-bottom: 0;
}

.score .gapsl.show {
  max-height: 320px;
}

.score .gapsl li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 7px 10px;
  background: var(--frost, #EDEDED);
  border-radius: 6px;
  font-family: var(--body, 'Open Sans', system-ui, sans-serif);
  line-height: 1.4;
}

.score .gapsl li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson, #ED1C24);
  margin-top: 6px;
}

.score .btn {
  width: 100%;
  margin-top: 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 26px;
  font-family: var(--display, 'Gotham', 'Montserrat', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  box-sizing: border-box;
}

.score .foot {
  font-family: var(--body, 'Open Sans', system-ui, sans-serif);
  font-size: 12px;
  color: var(--ink-soft, #4A5568);
  margin-top: 10px;
  line-height: 1.6;
}

/* Bottom CTAs */
.ready .ctas {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ready .ctas p {
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--body, 'Open Sans', system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0;
}

.ready .ctas .actions {
  display: flex !important;
  gap: 4.15px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

.ready .ctas .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 14px 26px !important;
  border-radius: 6px !important;
  font-family: var(--display, 'Gotham', 'Montserrat', system-ui, sans-serif) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  border: 2px solid transparent !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.ready .btn-primary,
.ready.on-dark .btn-primary {
  background: var(--crimson, #ED1C24) !important;
  color: #fff !important;
  border: 2px solid transparent !important;
}

.ready .btn-primary:hover,
.ready.on-dark .btn-primary:hover {
  background: #d0141b !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.ready .btn-outline,
.ready.on-dark .btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.7) !important;
  color: #fff !important;
  background: transparent !important;
}

.ready .btn-outline:hover,
.ready.on-dark .btn-outline:hover {
  background: #fff !important;
  color: var(--indigo, #002B5C) !important;
  border-color: #fff !important;
  transform: translateY(-1px);
}

/* Responsive Rules */
@media (max-width: 980px) {
  .ready .grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .score {
    position: static;
  }
}

@media (max-width: 720px) {
  .ready {
    padding: 52px 0;
  }
  .ql li {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ready .ctas {
    flex-direction: column;
    align-items: flex-start;
  }
  .ready .ctas .actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: auto !important;
  }
  .ready .ctas .actions .btn {
    width: auto !important;
    margin: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gauge .fg {
    transition: none;
  }
}
