/* ============ Free Tools pages (adds to style.css) ============ */
.tool-header .nav-row { height: 68px; }
.tool-header .btn { padding: 10px 20px; font-size: 0.9rem; }

.tool-hero { background: var(--navy); color: #fff; padding: 104px 0 64px; position: relative; overflow: hidden; }
.tool-hero .hero-bg { height: 160px; }
.tool-hero .container { position: relative; }
.tool-hero h1 { color: #fff; max-width: 20ch; }
.tool-hero p.lede { color: #C7D1E0; }
.tool-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.tool-meta span { font-size: 0.82rem; color: #C7D1E0; border: 1px solid var(--line-dark); border-radius: 999px; padding: 6px 14px; }

.value-card .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--teal-tint); color: var(--teal-deep); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; font-family: var(--serif); }

.why-box { background: #fff; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; padding: 26px 30px; }
.why-box p { color: var(--ink); }
.why-box p:last-child { margin-bottom: 0; }

.mini-bio { display: grid; grid-template-columns: 120px 1fr; gap: 26px; align-items: center; background: var(--navy); color: #C7D1E0; border-radius: 16px; padding: 26px; }
.mini-bio img { width: 120px; height: 120px; object-fit: cover; object-position: top; border-radius: 50%; border: 3px solid var(--teal); }
.mini-bio h3 { color: #fff; margin-bottom: 4px; }
.mini-bio .cred { color: var(--gold); font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }
.mini-bio p { margin: 0; font-size: 0.95rem; }

/* Assessment */
.assess { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 30px 30px; }
.assess-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; position: sticky; top: 68px; background: #fff; padding: 18px 0 14px; border-bottom: 1px solid var(--line); z-index: 5; }
.assess-top .scale { font-size: 0.85rem; color: var(--muted); }
.progress { font-size: 0.85rem; font-weight: 600; color: var(--teal-deep); }
.q { padding: 22px 0; border-bottom: 1px solid var(--line); }
.q:last-of-type { border-bottom: none; }
.q .area { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); }
.q .stmt { font-size: 1.05rem; color: var(--navy); font-weight: 500; margin: 4px 0 12px; max-width: none; }
.scale-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 560px; }
.scale-row input { position: absolute; opacity: 0; pointer-events: none; }
.scale-row label { border: 1px solid var(--line); border-radius: 10px; padding: 10px 4px 8px; text-align: center; cursor: pointer; background: #FAFCFE; transition: all .12s; }
.scale-row label b { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--navy); }
.scale-row label small { display: block; font-size: 0.68rem; color: var(--muted); line-height: 1.2; min-height: 1.2em; }
.scale-row label:hover { border-color: var(--teal); }
.scale-row input:checked + label { background: var(--navy); border-color: var(--navy); }
.scale-row input:checked + label b, .scale-row input:checked + label small { color: #fff; }
.scale-row input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.q.missing .stmt { color: #B3261E; }

.calc-grid { display: grid; gap: 18px; }
.calc-row { display: grid; grid-template-columns: 1fr 220px; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.calc-row .hint { font-size: 0.85rem; color: var(--muted); margin: 2px 0 0; }
.calc-row input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; background: #FFFBEF; }
.unit { font-size: 0.8rem; color: var(--muted); }

/* Gate */
.gate { margin-top: 28px; background: var(--navy); color: #fff; border-radius: 16px; padding: 32px; }
.gate h3 { color: #fff; }
.gate p { color: #C7D1E0; }
.gate .field label { color: #fff; }
.gate .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gate .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: #C7D1E0; margin: 4px 0 20px; }
.gate .consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.gate .consent a { color: var(--teal); text-decoration: underline; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.err-note { color: #FFB4A2; font-size: 0.88rem; margin-top: 10px; }

/* Results */
.results { display: none; }
.results.show { display: block; animation: reveal .6s ease both; }
.score-hero { display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.score-dial { text-align: center; border-radius: 14px; padding: 26px 10px; color: #fff; }
.score-dial .big { font-family: var(--serif); font-size: 3.6rem; line-height: 1; font-weight: 600; }
.score-dial .of { font-size: 0.9rem; opacity: .8; }
.score-dial .band { margin-top: 12px; font-weight: 700; font-size: 0.85rem; letter-spacing: .06em; text-transform: uppercase; }
.band-red { background: #8C2F1B; } .band-amber { background: var(--gold-deep); } .band-green { background: var(--teal-deep); }
.bands-key { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.bands-key span { font-size: 0.75rem; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.bands-key span.on { background: var(--navy); color: #fff; border-color: var(--navy); }

.bars { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 30px; }
.bar-row { display: grid; grid-template-columns: 220px 1fr 44px; gap: 14px; align-items: center; padding: 8px 0; }
.bar-row .lbl { font-size: 0.92rem; color: var(--ink); }
.bar-track { height: 12px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar-fill { height: 100%; border-radius: 999px; }
.bar-row .val { font-weight: 700; font-family: var(--serif); text-align: right; color: var(--navy); }
.bar-row.weak .lbl { font-weight: 700; color: var(--navy); }

.prio-card { border-top: 4px solid var(--gold); }
.prio-card .rank { font-family: var(--serif); color: var(--gold-deep); font-size: 1.1rem; }
.prio-card p { color: var(--ink); }

.plan-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); font-size: 0.93rem; }
.plan-table th { background: var(--navy); color: #fff; text-align: left; padding: 12px 14px; font-weight: 600; }
.plan-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }

.result-cta { background: var(--navy); border-radius: 16px; padding: 36px; color: #fff; text-align: center; }
.result-cta h2 { color: #fff; }
.result-cta p { color: #C7D1E0; margin-left: auto; margin-right: auto; }
.result-cta .acts { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.locked { text-align: center; padding: 120px 0; }

/* Hub */
.tool-card { display: flex; flex-direction: column; }
.tool-card .when { font-size: 0.75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 8px; }
.tool-card .btn { margin-top: 18px; align-self: flex-start; }
.tool-card.soon { background: transparent; border-style: dashed; }
.tool-card.soon h3 { color: var(--muted); }
.tool-card.soon .when { color: var(--gold-deep); }

@media (max-width: 760px) {
  .score-hero, .mini-bio { grid-template-columns: 1fr; }
  .mini-bio img { margin: 0 auto; }
  .bar-row { grid-template-columns: 1fr 40px; }
  .bar-row .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .gate .row2, .calc-row { grid-template-columns: 1fr; }
  .assess { padding: 4px 18px 22px; }
  .scale-row label small { display: none; }
  .assess-top { top: 68px; }
}

@media print {
  header, .tool-hero, .pre-results, .result-cta .acts, footer, .no-print { display: none !important; }
  body { background: #fff; }
  .results { display: block !important; }
  section { padding: 18px 0 !important; }
  .score-dial, .plan-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bar-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
