/* Prompt Quality Scorer — 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. */

/* Same reasoning as readiness-quiz.css: keep `hidden` authoritative over any
   class that sets its own `display` (this page has none today, but the next
   edit that adds one should not silently break hide/show). */
[hidden]{display:none !important}

.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}

.page-head{padding:52px 0 30px}
.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:64ch;color:#3A4653;font-size:1.05rem}
.page-head .lede-sub{margin-top:8px;max-width:64ch;color:var(--muted);font-size:.95rem}
.rule{height:4px;width:72px;background:var(--green);margin-top:26px;border-radius:2px}

.scorer-body{padding:24px 0}

.examples{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:14px}
.examples-label{font-size:.82rem;color:var(--muted);margin-right:4px}
.example-btn{font-size:.8rem;padding:7px 14px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--muted);cursor:pointer;font-family:inherit;transition:border-color .15s,color .15s}
.example-btn:hover{border-color:#B9A7EE;color:#6D28D9}

.input-box{background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden}
#prompt-input{width:100%;padding:22px;font-size:1rem;color:var(--ink);border:none;resize:vertical;outline:none;min-height:180px;font-family:inherit;line-height:1.6}
#prompt-input::placeholder{color:#9AA5AE}
.input-footer{border-top:1px solid var(--line);padding:14px 22px;display:flex;align-items:center;justify-content:space-between;background:#FCFBF9}
#word-count{font-size:.8rem;color:var(--muted)}
.input-actions{display:flex;gap:10px}

.btn-ghost{display:inline-flex;align-items:center;gap:6px;text-decoration:none;padding:9px 16px;border-radius:6px;font-size:.88rem;font-weight:600;color:var(--muted);border:none;background:transparent;cursor:pointer;font-family:inherit}
.btn-ghost:hover{color:var(--navy)}

.error-box{margin-top:16px;padding:14px 16px;border-radius:10px;background:#FDECEC;border:1px solid #F3B9B9;color:#9B2C2C;font-size:.9rem}

.panel{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:32px}
.panel-accent{background:linear-gradient(135deg, rgba(124,58,237,.06), rgba(6,182,212,.06));border-color:#D9CFF2;margin-top:28px}
.panel h2{font-family:var(--serif);font-size:1.25rem;font-weight:600;color:var(--navy);margin-bottom:16px}

.overall-card{margin-bottom:36px}
.score-row{display:flex;align-items:center;gap:28px;flex-wrap:wrap}
.score-donut{position:relative;flex:none;width:100px;height:100px}
.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.4rem;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:40ch;color:#3A4653;line-height:1.6}

.section-heading{font-family:var(--serif);font-size:1.3rem;font-weight:700;color:var(--navy);margin-bottom:18px}

.phase-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media (max-width:900px){.phase-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.phase-grid{grid-template-columns:1fr}}

.phase-card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:22px}
.phase-card .phase-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px;gap:10px}
.phase-card h3{font-family:var(--serif);font-weight:700;font-size:1rem;color:var(--navy)}
.phase-card .phase-desc{font-size:.76rem;color:var(--muted);margin-top:2px}
.phase-card .phase-score{text-align:right;flex:none}
.phase-card .phase-score-num{font-family:var(--serif);font-weight:700;font-size:1.5rem;color:var(--navy)}
.phase-card .phase-score-max{color:var(--muted);font-size:.85rem}
.phase-card .phase-label{font-size:.76rem;font-weight:700;margin-top:2px}
.phase-track{height:8px;background:var(--sand);border-radius:999px;overflow:hidden;margin-bottom:12px}
.phase-fill{height:100%;border-radius:999px}
.phase-card .phase-observation{font-size:.9rem;color:#3A4653;line-height:1.55}

.recommendations-list{display:flex;flex-direction:column;gap:14px}
.recommendation{display:flex;gap:12px;align-items:flex-start}
.recommendation .num{width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#7C3AED,#3B82F6);flex:none;display:flex;align-items:center;justify-content:center;color:#fff;font-size:.75rem;font-weight:700;margin-top:2px}
.recommendation p{font-size:.92rem;color:#3A4653;line-height:1.55}

#explainer-section{padding-top:8px;padding-bottom:56px}
.phase-explainer{border-radius:12px;padding:18px;border:1px solid var(--line);background:var(--card)}
.phase-explainer-label{font-size:.74rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin-bottom:6px;color:#6D28D9}
.phase-explainer p{font-size:.88rem;color:#3A4653;line-height:1.55}
.phase-explainer.think{border-color:#D9CFF2}
.phase-explainer.ask{border-color:#BFDBFE}
.phase-explainer.react{border-color:#A5F3FC}
.phase-explainer.steer{border-color:#A7F3D0}
.phase-explainer.decide{border-color:#FDE68A}
