/* AI Readiness Assessment pages. Builds on styles.css (tokens, buttons, fields, header, footer). */

/* Current page or section in the main nav */
.nav a:not(.btn)[aria-current] { color: var(--gold); }
.nav a:not(.btn)[aria-current]::after { transform: scaleX(1); }

/* Landing */
.a-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); background: linear-gradient(180deg, #e9f2ff 0%, #f7fbff 60%, #fff 100%); }
.a-hero .lead { max-width: 62ch; }
.a-hero h1 { max-width: 20ch; }
.a-sub { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--blue); margin: 0 0 1.1em; line-height: 1.35; }
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--navy-800); background: #fff; border: 1px solid #cfe0f7; border-radius: 999px; padding: 9px 16px; }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.benefits li { position: relative; padding-left: 34px; color: var(--ink); }
.benefits li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d7a4d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.a-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.a-steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.a-steps li::before { content: "Step " counter(s); display: block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.a-steps h3 { font-size: 1.05rem; }
.a-steps p { color: var(--muted); font-size: .96rem; margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy-900); font-family: var(--f-head); }
.faq details p { margin: 12px 0 0; color: var(--muted); }
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); border-radius: 24px; padding: clamp(28px, 5vw, 48px); color: #fff; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-band p { margin: 0; color: #cfe0f7; }

/* App shell */
.app-wrap { padding: clamp(28px, 5vw, 56px) 0 80px; background: linear-gradient(180deg, #e9f2ff 0%, #f7fbff 40%, #fff 100%); min-height: 70vh; }
.app-card { max-width: 780px; margin: 0 auto; }
.app-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; max-width: 780px; margin: 0 auto 14px; font-size: .92rem; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
.save-state { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.save-state.err { color: var(--danger); }

.auth-box { display: flex; justify-content: center; min-height: 300px; }
.auth-switch { text-align: center; margin-top: 16px; color: var(--muted); }

.progress { margin-bottom: 22px; }
.progress-meta { display: flex; justify-content: space-between; gap: 10px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.progress-meta .sec { color: var(--gold-deep); }
.bar { height: 8px; border-radius: 999px; background: #e3ecf8; overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-bright), var(--sky)); transition: width .3s ease; }

.q-num { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.q-title { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin-bottom: .5em; }
.q-help { color: var(--muted); margin: 0 0 18px; }
.q-callout { background: var(--gold-soft); border: 1px solid #f0dca8; border-left: 4px solid var(--gold-bright); border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 18px; }
.q-callout p { margin: 0 0 .7em; color: var(--navy-900); }
.q-callout p:last-child { margin: 0; }
.q-prompts { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.q-prompts li { font-size: .88rem; background: var(--blue-soft); color: var(--navy-800); border-radius: 999px; padding: 6px 12px; }

.opt-list { display: grid; gap: 10px; margin-bottom: 20px; border: 0; padding: 0; min-width: 0; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid #cfdaec; border-radius: var(--radius-sm); background: #fbfdff; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--sky); }
.opt:has(input:checked) { border-color: var(--sky); background: var(--blue-soft); }
.opt:has(input:focus-visible) { outline: 3px solid var(--sky); outline-offset: 2px; }
.opt input { margin: .25em 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }
.opt span { line-height: 1.45; }
.opt-list.invalid .opt { border-color: var(--danger); }
.opt-limit { font-size: .9rem; color: var(--muted); margin: -8px 0 16px; }

.app-card .field textarea { min-height: 120px; }
.char-hint { font-size: .85rem; color: var(--muted); margin: 4px 0 0; text-align: right; }
.ro { padding: 13px 15px; background: #f1f6fc; border: 1.5px solid #dbe5f3; border-radius: var(--radius-sm); color: var(--navy-900); overflow-wrap: anywhere; }

.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.wiz-nav .btn { min-width: 120px; }

.review-sec { margin-bottom: 26px; }
.review-sec h3 { font-size: 1rem; color: var(--gold-deep); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.review-item { border-top: 1px solid var(--line); padding: 12px 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
.review-item dt { font-weight: 600; color: var(--navy-900); }
.review-item dd { margin: 4px 0 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; grid-column: 1; }
.review-item .link-btn { grid-column: 2; grid-row: 1; align-self: start; }
.review-item.missing dd { color: var(--danger); font-weight: 600; }

.privacy-note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--gold-bright); padding-left: 12px; margin: 20px 0 0; }
.done-card { text-align: center; }
.done-card .tick { width: 72px; height: 72px; }
.done-card h1 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.done-card p { color: var(--ink); max-width: 56ch; margin-inline: auto; }
.done-card .due { display: inline-block; margin: 10px 0 18px; padding: 10px 18px; background: var(--ok-soft); color: var(--ok); border-radius: 999px; font-weight: 600; }

@media (max-width: 860px) { .a-steps { grid-template-columns: repeat(2, 1fr); } .benefits { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .a-steps { grid-template-columns: 1fr; }
  .wiz-nav { flex-direction: column-reverse; }
  .wiz-nav .btn { width: 100%; }
  .review-item { grid-template-columns: 1fr; }
  .review-item .link-btn { grid-column: 1; grid-row: auto; justify-self: start; }
}

.narrow { max-width: 820px; }
.section.no-top { padding-top: 0; }

/* Footer contact email stays on one line */
.site-footer a[href^="mailto:"] { white-space: nowrap; font-size: clamp(.8rem, 2.6vw, 1rem); }
@media (min-width: 861px) { .footer-grid { grid-template-columns: 1.1fr .8fr 1.5fr; } }

.auth-note { margin-top: 18px; font-size: .92rem; color: var(--muted, #4a5b73); line-height: 1.5; }

/* Value emphasis */
.no-docs { margin: 12px 0 0; font-size: .82rem; color: var(--muted); font-weight: 400; }
.deliver { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; counter-reset: d; }
.deliver li { grid-column: span 2; counter-increment: d; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 3px solid var(--gold-deep); }
.deliver li::before { content: counter(d); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy-900); color: var(--gold); font-family: var(--f-mono); font-size: .85rem; margin-bottom: 14px; }
.deliver li:nth-child(n+4) { grid-column: span 3; }
.deliver h3 { font-size: 1.05rem; margin-bottom: .4em; }
.deliver p { color: var(--muted); font-size: .96rem; margin: 0; }
.value-band { display: block; background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 52px); }
.value-band h2 { color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.value-band p { color: #cfe0f7; }
.value-copy { max-width: 62ch; }
.value-copy .btn { margin-top: 8px; }
@media (max-width: 860px) { .deliver { grid-template-columns: 1fr 1fr; } .deliver li, .deliver li:nth-child(n+4) { grid-column: auto; } .deliver li:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .deliver { grid-template-columns: 1fr; } .deliver li:last-child { grid-column: auto; } }
