/* Actavia website: AI Readiness Audit page. */

.audit { max-width: 760px; margin: 0 auto; padding: 56px 24px 104px; }
.audit h2 { margin: 0 0 12px; font-family: 'Jost', sans-serif; font-weight: 500; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.2; }
.audit h2:focus { outline: none; }
.audit .eyebrow { font-family: 'Jost', sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #53607A; margin-bottom: 12px; }
.audit .sub { margin: 0 0 32px; color: #3E4B66; }

/* progress */
.progress { position: sticky; top: 0; z-index: 2; background: #FFFFFF; padding: 14px 0 16px; margin-bottom: 8px; }
.progress-label { display: flex; justify-content: space-between; font-size: 15px; color: #53607A; margin-bottom: 8px; }
.progress-track { height: 6px; background: #D9DFE8; border-radius: 3px; }
.progress-fill { height: 6px; width: 0; background: #15C2D6; border-radius: 3px; transition: width 0.4s ease; }

/* questions */
.audit fieldset { border: none; margin: 0; padding: 36px 0 12px; border-top: 1px solid #D9DFE8; min-width: 0; }
.audit fieldset:first-of-type { border-top: none; padding-top: 12px; }
.audit legend { display: flex; gap: 18px; align-items: flex-start; width: 100%; padding: 0; margin-bottom: 20px; float: left; }
.audit legend + * { clear: both; }
.q-num { font-family: 'Jost', sans-serif; font-size: 40px; line-height: 1; color: #1B4E8F; width: 32px; flex-shrink: 0; }
.q-layer { display: block; font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #1B4E8F; }
.q-text { display: block; font-family: 'Jost', sans-serif; font-size: 24px; font-weight: 500; line-height: 1.25; margin-top: 2px; }
.q-help { display: block; font-size: 17px; color: #3E4B66; margin-top: 8px; line-height: 1.55; }
.options { display: flex; flex-direction: column; gap: 10px; padding-left: 50px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 8px; border: 1px solid #B4BECF; cursor: pointer; font-size: 17px; line-height: 1.5; background: #FFFFFF; transition: border-color 0.15s, background 0.15s; }
.opt:hover { border-color: #53607A; background: #F4F6F8; }
.opt input { margin: 5px 0 0; width: 18px; height: 18px; accent-color: #2B2D42; flex-shrink: 0; }
.opt:has(input:checked) { border-color: #2B2D42; background: #E3F7FA; box-shadow: inset 0 0 0 1px #2B2D42; }
.opt:has(input:focus-visible) { outline: 3px solid #15C2D6; outline-offset: 2px; }
.opt input:focus-visible { outline: none; }
.actions { display: flex; justify-content: flex-end; padding-left: 50px; margin-top: 28px; }

/* buttons */
.audit-btn { display: inline-block; font: inherit; font-weight: 600; font-size: 18px; border: none; border-radius: 6px; padding: 15px 30px; cursor: pointer; text-decoration: none; }
button.btn-dark.audit-btn { background: #2B2D42; color: #FFFFFF; }
button.btn-dark.audit-btn:disabled { background: #D9DFE8; color: #53607A; cursor: not-allowed; opacity: 1; }
a.btn-accent.audit-btn { background: #15C2D6; color: #2B2D42; }
.ghost-btn { font: inherit; font-weight: 600; font-size: 18px; background: none; color: #FFFFFF; border: 1.5px solid #8FA0BD; border-radius: 6px; padding: 14px 28px; cursor: pointer; }
.ghost-btn:hover { border-color: #FFFFFF; }
.link-btn { font: inherit; font-size: 17px; background: none; border: none; padding: 12px 0; color: #1B4E8F; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: #2B2D42; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }

/* details step */
.field { margin-bottom: 20px; max-width: 480px; }
.field label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; box-sizing: border-box; font: inherit; padding: 13px 14px; border: 1px solid #7C8AA5; border-radius: 6px; background: #FFFFFF; color: #17233B; }
.consent { font-size: 15px; color: #53607A; line-height: 1.55; margin: 4px 0 20px; max-width: 560px; }
#details-error { margin: 0 0 20px; max-width: 560px; }

/* results */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.card { background: #F4F6F8; border-radius: 12px; padding: 22px; }
.card-value { font-family: 'Jost', sans-serif; font-size: 22px; font-weight: 500; line-height: 1.25; }
.card-value.big { font-size: 40px; line-height: 1; }
.card-label { font-size: 15px; color: #53607A; margin-top: 8px; }
.green { color: #0F6E56; }
.amber { color: #8A5300; }
.red { color: #A32D2D; }
.section-title { font-family: 'Jost', sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #53607A; margin-bottom: 18px; }
.bars { margin-bottom: 40px; }
.bar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.bar-name { font-size: 16px; width: 210px; flex-shrink: 0; }
.bar-track { flex: 1; height: 8px; background: #D9DFE8; border-radius: 4px; }
.bar-fill { height: 8px; border-radius: 4px; }
.bar-score { font-size: 15px; color: #53607A; width: 52px; text-align: right; flex-shrink: 0; }
.priority { border-left: 4px solid #D85A30; padding: 22px 26px; background: #FCEDEA; color: #5E2413; border-radius: 0 10px 10px 0; margin-bottom: 40px; }
.priority.good { border-left-color: #1D9E75; background: #E1F5EE; color: #073F33; }
.priority-eyebrow { font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px; }
.priority-title { font-family: 'Jost', sans-serif; font-size: 24px; font-weight: 500; line-height: 1.25; margin-bottom: 8px; }
.priority-text { font-size: 17px; line-height: 1.6; }
.cta { background: #2B2D42; color: #FFFFFF; border-radius: 12px; padding: 36px 32px; }
.cta h3 { margin: 0 0 10px; font-family: 'Jost', sans-serif; font-weight: 500; font-size: 26px; line-height: 1.25; }
.cta p { margin: 0 0 24px; color: #C5CFE0; }
.after-note { margin: 28px 0 0; color: #3E4B66; }

@media (max-width: 600px) {
  .audit { padding: 32px 24px 72px; }
  .options, .actions { padding-left: 0; }
  .actions { justify-content: stretch; }
  .actions .audit-btn { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .bar-row { flex-wrap: wrap; gap: 6px 12px; }
  .bar-name { width: calc(100% - 64px); }
  .bar-track { order: 3; flex: 1 1 100%; }
  .q-text { font-size: 22px; }
  .cta { padding: 28px 22px; }
}
