/* AJB Advisor practice coach. Builds on /styles.css variables. */
body.coach { min-height: 100vh; display: flex; flex-direction: column; }
.coach .wrap { max-width: 40rem; }
.coach-main { flex: 1; padding-top: 2.25rem; padding-bottom: 3rem; }
.coach-kicker { font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.coach-title { font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 0.9rem; }
.coach-lede { color: var(--muted); font-size: 1.08rem; margin-bottom: 1.75rem; max-width: 34rem; }
.coach-card { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 1.5rem 1.4rem; box-shadow: 0 10px 30px -24px rgba(31,27,23,0.5); }
.coach-card h2 { font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 1.6rem; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 1rem; }
.coach-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.coach-input { width: 100%; font: inherit; font-size: 1.1rem; padding: 0.7rem 0.85rem; border: 1px solid var(--rule); border-radius: 6px; background: #fff; color: var(--text); letter-spacing: 0.02em; }
.coach-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.coach-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1rem; font-family: var(--font-head); font-weight: 700; font-size: 1rem; background: var(--accent); color: #fff; border: 0; border-radius: 6px; padding: 0.75rem 1.2rem; cursor: pointer; min-height: 44px; -webkit-tap-highlight-color: transparent; }
.coach-btn:hover { background: var(--focus); }
.coach-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.coach-btn[disabled] { opacity: 0.6; cursor: default; }
.coach-btn-lg { width: 100%; font-size: 1.08rem; padding: 0.95rem 1.2rem; }
.coach-btn-end { width: 100%; background: var(--text); }
.coach-btn-end:hover { background: #000; }
.coach-btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.coach-btn-ghost:hover { background: var(--accent-tint); color: var(--focus); }
.coach-msg { margin-top: 0.85rem; font-size: 0.95rem; color: var(--accent); }
.coach-warn { color: var(--text); background: var(--accent-tint); border-radius: 6px; padding: 0.55rem 0.75rem; }
.coach-muted { color: var(--muted); }
.coach-fine { margin-top: 0.9rem; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.coach-list { list-style: none; display: grid; gap: 0.7rem; margin-bottom: 0.5rem; }
.coach-list li { position: relative; padding-left: 1.25rem; }
.coach-list li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent-bright); }

/* Call */
.call-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.call-who-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.coach-card h2.call-who { margin: 0.15rem 0 0.1rem; font-size: 1.55rem; }
.call-sub { color: var(--muted); font-size: 0.95rem; }
.call-timer { text-align: right; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.call-timer small { display: block; font-size: 0.72rem; font-weight: 600; color: var(--muted); margin-top: 0.3rem; }
.call-timer.is-late { color: var(--accent); }
.call-viz { display: grid; justify-items: center; gap: 0.75rem; padding: 1.75rem 0 1.25rem; }
.viz-ring { --lvl: 0; width: 7.5rem; height: 7.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); box-shadow: 0 0 0 calc(4px + var(--lvl) * 22px) rgba(208, 89, 43, 0.14); transition: box-shadow 90ms linear; }
.viz-dot { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--accent-bright); opacity: 0.85; }
.viz-ring.is-buyer .viz-dot { background: var(--text); }
.viz-status { font-size: 0.95rem; color: var(--muted); min-height: 1.5em; }
.call-captions { margin-top: 0.5rem; border-top: 1px solid var(--rule); padding-top: 0.75rem; }
.call-captions summary, .report-transcript summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--muted); }
.captions { max-height: 13rem; overflow-y: auto; margin-top: 0.6rem; font-size: 0.92rem; display: grid; gap: 0.4rem; }
.cap b { font-weight: 700; color: var(--text); margin-right: 0.35rem; }
.cap.rep b { color: var(--accent); }
.call-actions { margin-top: 1rem; }

/* Scoring */
.coach-spinner { width: 2.25rem; height: 2.25rem; margin-top: 1rem; border: 3px solid var(--rule); border-top-color: var(--accent-bright); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .coach-spinner { animation-duration: 3s; } .viz-ring { transition: none; } }

/* Report */
.report-persona { font-size: 0.9rem; color: var(--muted); margin: -0.4rem 0 0.9rem; }
.report-summary { font-family: "Newsreader", Georgia, serif; font-size: 1.18rem; line-height: 1.55; margin-bottom: 1.25rem; }
.report-scores { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
.score-row { border: 1px solid var(--rule); border-radius: 8px; padding: 0.8rem 0.9rem; background: #fff; }
.score-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.score-name { font-family: var(--font-head); font-weight: 700; }
.score-val { font-family: var(--font-head); font-weight: 800; color: var(--accent); white-space: nowrap; }
.score-bar { height: 6px; border-radius: 3px; background: var(--bg-soft); margin: 0.45rem 0 0.5rem; overflow: hidden; }
.score-bar span { display: block; height: 100%; background: var(--accent-bright); border-radius: 3px; }
.score-note { font-size: 0.93rem; }
.score-evidence { font-size: 0.88rem; color: var(--muted); font-style: italic; margin-top: 0.3rem; }
.report-sub { font-size: 1.05rem; margin: 0.25rem 0 0.75rem; }
.report-pointers { list-style: none; display: grid; gap: 0.85rem; counter-reset: p; }
.report-pointers li { counter-increment: p; position: relative; padding: 0.9rem 0.95rem 0.9rem 3rem; background: var(--accent-tint); border-radius: 8px; }
.report-pointers li::before { content: counter(p); position: absolute; left: 1rem; top: 0.85rem; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--accent-bright); }
.ptr-role { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--accent); border-radius: 4px; padding: 0.12rem 0.45rem; margin-bottom: 0.35rem; }
.ptr-module { display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--accent); margin: 0 0 0.35rem 0.5rem; }
.ptr-title { font-family: var(--font-head); font-weight: 700; display: block; margin-bottom: 0.2rem; }
.ptr-say { margin-top: 0.4rem; font-size: 0.93rem; }
.ptr-say q { font-style: italic; }
.report-transcript { margin-top: 1.4rem; border-top: 1px solid var(--rule); padding-top: 0.8rem; }
#report-transcript { margin-top: 0.6rem; font-size: 0.9rem; display: grid; gap: 0.35rem; max-height: 20rem; overflow-y: auto; }
.report-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.coach-footer { padding: 1.5rem 1.5rem 2rem; font-size: 0.82rem; color: var(--muted); }

@media (max-width: 480px) {
  .coach-main { padding-top: 1.5rem; }
  .coach-card { padding: 1.2rem 1.05rem; }
  .report-actions .coach-btn { flex: 1 1 100%; }
}

/* mode picker (required) + voice picker */
.mode-pick { display: grid; gap: 0.7rem; margin: 0 0 1.1rem; }
.mode-pick .coach-label { margin-bottom: 0.1rem; }
.mode-btn { display: block; width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--card); border: 2px solid var(--rule); border-radius: 12px; padding: 1rem 1.1rem; min-height: 72px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .15s, background .15s, box-shadow .15s; }
.mode-btn:hover { border-color: var(--accent-bright); }
.mode-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mode-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent) inset; }
.mode-btn[aria-pressed="true"] .mode-name::before { content: "\2713  "; color: var(--accent); }
.mode-name { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.mode-desc { display: block; font-size: 0.95rem; color: var(--muted); margin-top: 0.15rem; }
@media (min-width: 640px) { .mode-pick { grid-template-columns: 1fr 1fr; } .mode-pick .coach-label { grid-column: 1 / -1; } }
.voice-pick { margin: 0 0 1rem; }
.coach-select { max-width: 360px; cursor: pointer; }
.coach-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Topic modes (Sales Wheel training) */
.mode-pick[hidden] { display: none; }
.topic-banner { border-top: 4px solid var(--accent-bright, #b5441c); }
.topic-title { font-family: var(--font-head); font-size: 1.35rem; margin: 0.2rem 0 0.6rem; }
.topic-privacy { font-weight: 600; margin: 0 0 0.5rem; }
.topic-only { display: none; }
.has-topic .topic-only { display: list-item; }
.has-topic .no-topic { display: none; }
.has-topic #screen-ready [data-for-play] { display: none; }
.topic-banner { margin-bottom: 1rem; }

/* Goals mode: welcome back, the tidied-up draft, and the boss one-pager (goals.js) */
.coach-btn-link { background: transparent; color: var(--muted); border: 0; text-decoration: underline; padding-left: 0.2rem; padding-right: 0.2rem; }
.coach-btn-link:hover { background: transparent; color: var(--accent); }
.goals-panel { border: 1px solid var(--rule); border-radius: 8px; background: var(--bg-soft); padding: 1rem 1.05rem; margin-bottom: 1.25rem; }
.goals-panel-h { font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 1.3rem; margin-bottom: 0.4rem; }
.goals-draft { display: grid; gap: 0.75rem; margin: 0.85rem 0 0.25rem; }
.goal-card { background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 6px; padding: 0.8rem 0.95rem; }
.goal-title { font-family: var(--font-head); font-size: 1.02rem; font-weight: 700; margin-bottom: 0.45rem; }
.goal-dl { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.3rem 0.8rem; font-size: 0.95rem; }
.goal-dl dt { color: var(--muted); font-weight: 600; }
.goal-dl dd { margin: 0; }
.goal-dl dd.is-open { color: var(--accent); font-style: italic; }
.goal-open-h { font-family: var(--font-head); font-size: 0.95rem; margin-top: 0.4rem; }
.goal-open { padding-left: 1.2rem; font-size: 0.95rem; color: var(--accent); }
.goals-actions { display: flex; flex-wrap: wrap; gap: 0 0.6rem; }
.goals-confirm { margin-top: 0.8rem; padding: 0.8rem 0.9rem; border-radius: 6px; background: var(--accent-tint); }
.goals-confirm .coach-btn { margin-right: 0.5rem; }
.op-boundary { background: var(--accent-tint); border-radius: 6px; padding: 0.7rem 0.85rem; margin-bottom: 1rem; font-size: 0.97rem; }
.op-form .coach-label { margin-top: 0.85rem; }
.op-form textarea.coach-input { font-size: 1rem; line-height: 1.45; resize: vertical; }
.op-goal { border-top: 1px solid var(--rule); margin-top: 0.9rem; padding-top: 0.2rem; }
.op-share { margin-top: 1.4rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
#op-share-on .coach-input { font-size: 0.92rem; margin-top: 0.6rem; }
#op-share-on .coach-btn { margin-right: 0.5rem; }
@media (max-width: 30rem) { .goal-dl { grid-template-columns: 1fr; } .goal-dl dd { margin-bottom: 0.35rem; } }
/* Shared one-pager (view-only) */
.shared-onepager h2 { margin-bottom: 0.6rem; }
.shared-onepager h3 { font-family: var(--font-head); font-size: 1.05rem; margin: 1.1rem 0 0.35rem; }
.shared-onepager ol, .shared-onepager ul { padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.shared-onepager .op-why { color: var(--muted); margin-top: 0.15rem; }
/* Buttons and panels set display explicitly; keep the hidden attribute authoritative. */
.coach [hidden] { display: none !important; }
/* goals: the calculator numbers shared with the coach (John, 10:30 PM) */
.goals-calc { margin-top: 0.6rem; }
.goals-calc .coach-fine { margin-top: 0.3rem; }
.goals-calc-toggle { display: flex; align-items: center; gap: 0.45rem; font-size: 0.86rem; color: var(--muted); cursor: pointer; }
.goals-calc-toggle[hidden] { display: none; }
.goals-calc-toggle input { width: 1rem; height: 1rem; }

/* "Not just another ChatGPT" (John, 2026-09-27 2:56 PM ET) */
.coach-lede + .coach-lede.coach-line { margin-top: -1rem; font-size: 1rem; }
.topic-coachline { color: var(--muted); font-size: 0.98rem; margin: 0.35rem 0 0.6rem; }

/* Access code entry (John, 2026-09-28 11:41 AM ET): the heading reads as plain text, never as a box; the input is the obvious box. */
.coach-card h2[tabindex="-1"]:focus, .coach-card h2[tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
.gate-h label { cursor: pointer; display: inline; font: inherit; border: 0; background: none; padding: 0; }
.gate-hint { font-weight: 400; color: var(--muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.gate-input { border: 2px solid #8c7f6d; border-radius: 8px; min-height: 52px; font-size: max(16px, 1.15rem); background: #fff; cursor: text; box-shadow: inset 0 1px 2px rgba(31,27,23,0.08); }
.gate-input::placeholder { color: #9a8f80; opacity: 1; }
.gate-input:hover { border-color: var(--accent); }
.gate-input:focus { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
