/* AI Adoption Readiness Quiz — page-specific styles.
   Uses only the CSS custom properties defined in the DAIG base block inline
   in index.html (--navy, --paper, --green, etc.), so a future palette change
   only has to touch that block, not this file. */

/* Several elements below set their own `display` (flex, for the progress
   row and the loading spinner). A same-specificity class rule declared after
   the browser's own `[hidden]{display:none}` wins the cascade, so without
   this the JS toggling the `hidden` attribute would silently stop hiding
   those elements. This rule keeps `hidden` authoritative no matter what
   display value a class sets. */
[hidden]{display:none !important}

.page-head{padding:52px 0 34px}
.kicker{font-size:.78rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:#1B6E4C;margin-bottom:14px}
.crumb{margin-bottom:14px;font-size:.9rem}
.crumb a{color:var(--muted);text-decoration:none}
.crumb a:hover{color:var(--navy)}
.page-head h1{font-family:var(--serif);font-size:clamp(2rem,4.6vw,3rem);font-weight:600;color:var(--navy);line-height:1.15;max-width:22ch}
.page-head .lede{margin-top:18px;max-width:60ch;color:#3A4653;font-size:1.05rem}
.rule{height:4px;width:72px;background:var(--green);margin-top:26px;border-radius:2px}

.quiz-body{padding:8px 0 72px}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.panel{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:32px;max-width:720px;margin:0 auto}
.panel-stack{display:flex;flex-direction:column;gap:20px;max-width:720px;margin:0 auto}
.panel-stack .panel{max-width:none;margin:0}
.panel-accent{background:linear-gradient(135deg, rgba(124,58,237,.06), rgba(6,182,212,.06));border-color:#D9CFF2}

.panel h2{font-family:var(--serif);font-size:1.3rem;font-weight:600;color:var(--navy);margin-bottom:16px}
.panel p{color:#3A4653;margin-bottom:14px;line-height:1.65}
.panel p:last-child{margin-bottom:0}

.check-list{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 28px;font-size:.94rem;color:#3A4653}
.check-list li{display:flex;align-items:center;gap:10px}
.check-list li::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--green);flex:none}
@media (max-width:560px){.check-list{grid-template-columns:1fr}}

.btn-ghost{display:inline-block;text-decoration:none;padding:10px 20px;border-radius:6px;font-size:.9rem;font-weight:600;color:var(--green-dark);border:1px solid var(--line);background:#fff;cursor:pointer;font-family:inherit;transition:border-color .15s}
.btn-ghost:hover{border-color:var(--green)}

/* Question panel */
.progress-header{margin-bottom:22px}
.progress-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.progress-row .category{font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#7C3AED}
.progress-row .position{font-size:.8rem;color:var(--muted)}
.progress-bar{height:6px;background:var(--sand);border-radius:999px;overflow:hidden}
.progress-fill{height:100%;background:linear-gradient(90deg,#7C3AED,#3B82F6);border-radius:999px;width:0%;transition:width .4s ease}

#quiz-question-text{font-family:var(--serif);font-size:1.35rem;font-weight:600;color:var(--navy);margin-bottom:20px;line-height:1.35}

.options{display:flex;flex-direction:column;gap:10px;margin-bottom:22px}
.option{width:100%;text-align:left;padding:14px 16px;border-radius:12px;border:2px solid var(--line);background:#FCFBF9;font-size:.96rem;line-height:1.5;font-family:inherit;color:var(--ink);cursor:pointer;display:flex;align-items:flex-start;gap:12px;transition:border-color .15s,background .15s}
.option:hover{border-color:#B9A7EE;background:#F8F5FE}
.option[aria-pressed="true"]{border-color:#7C3AED;background:#F3EEFD;color:#3E2E82}
.option .dot{width:20px;height:20px;border-radius:50%;border:2px solid var(--line);flex:none;margin-top:1px;display:flex;align-items:center;justify-content:center}
.option[aria-pressed="true"] .dot{border-color:#7C3AED;background:#7C3AED}
.option[aria-pressed="true"] .dot::after{content:"";width:8px;height:8px;border-radius:50%;background:#fff}

.quiz-nav{display:flex;align-items:center;justify-content:space-between}
.quiz-nav .btn-ghost{border-color:transparent;background:transparent;color:var(--muted)}
.quiz-nav .btn-ghost:hover{color:var(--navy)}
.quiz-nav .btn[aria-disabled="true"]{opacity:.4;cursor:not-allowed}

/* Results */
.score-row{display:flex;align-items:center;gap:28px;flex-wrap:wrap}
.score-donut{position:relative;flex:none;width:96px;height:96px}
.score-donut-label{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.score-donut-label span:first-child{font-family:var(--serif);font-weight:700;font-size:1.3rem;color:var(--navy);line-height:1}
.score-donut-label .score-max{font-size:.72rem;color:var(--muted)}
.tier-badge{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:5px 14px;border-radius:999px;color:#fff;background:linear-gradient(90deg,#10B981,#06B6D4);margin-bottom:10px}
.tier-tagline{max-width:38ch;color:#3A4653;line-height:1.6}

.breakdown{display:flex;flex-direction:column;gap:16px}
.breakdown-row .breakdown-top{display:flex;justify-content:space-between;margin-bottom:6px;font-size:.92rem}
.breakdown-row .breakdown-top strong{color:var(--navy)}
.breakdown-track{height:8px;background:var(--sand);border-radius:999px;overflow:hidden;margin-bottom:6px}
.breakdown-fill{height:100%;border-radius:999px}
.breakdown-answer{font-size:.8rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.analysis-loading{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:.95rem}
.spinner{width:16px;height:16px;border-radius:50%;border:2px solid rgba(124,58,237,.3);border-top-color:#7C3AED;display:inline-block;animation:quiz-spin 1s linear infinite}
@keyframes quiz-spin{to{transform:rotate(360deg)}}
.analysis-unavailable{color:#8A6A1E;background:#FBF3DC;border:1px solid #EEDBA0;border-radius:8px;padding:12px 14px;font-size:.92rem}
.analysis-text p{margin-bottom:12px}
.analysis-text p:last-child{margin-bottom:0}

.handoff-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
.copy-note{font-size:.82rem;color:var(--muted);margin-top:14px}

.secondary-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:14px;padding:6px 0}
.secondary-row a{color:#0891B2;text-decoration:none;font-size:.92rem;font-weight:600}
.secondary-row a:hover{text-decoration:underline}
.secondary-row button{background:none;border:none;color:var(--muted);font-size:.92rem;font-family:inherit;cursor:pointer}
.secondary-row button:hover{color:var(--navy)}

@media (max-width:760px){
  .panel{padding:24px}
  .page-head{padding:40px 0 28px}
}
