/* Architect Prep Coach (unofficial). Shell pattern copied from the grok-learning prototype (not modified there). */
:root {
  --ink: #102a43; --muted: #52677d; --soft: #f0f4f7; --line: #d9e2ec; --paper: #fbfcfe;
  --teal: #087f8c; --teal-dark: #05616d; --teal-soft: #e6f5f4; --coral: #a84a1c; --coral-line: #ef8354; --red: #c0392b; --red-soft: #fdecea;
  --green: #17663f; --green-soft: #e7f6ee; --yellow: #fff0b3; --shadow: 0 10px 30px rgba(16,42,67,.08);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); background: #edf2f6;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #edf2f6; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(8,127,140,.34); outline-offset: 2px; }
a { color: var(--teal-dark); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.app-shell { width: 100%; max-width: 660px; min-height: 100vh; margin: 0 auto; background: var(--paper); box-shadow: 0 0 60px rgba(16,42,67,.08); padding-bottom: 76px; }
.topbar { height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(251,252,254,.96); position: sticky; top: 0; z-index: 5; }
.brand-lockup { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.unofficial { color: var(--coral); font-weight: 750; }
.icon-button, .close-button { border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 16px; font-weight: 800; width: 44px; height: 44px; border-radius: 10px; }
#app { padding: 18px 16px 18px; }
.site-footer { padding: 8px 16px 18px; color: var(--muted); font-size: 12px; line-height: 1.5; border-top: 1px solid var(--line); }
.site-footer p { margin: 8px 0 0; }
.link-button { border: 0; background: none; color: var(--teal-dark); text-decoration: underline; padding: 0; font-size: inherit; }
.site-footer .link-button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 6px; margin: -13px 0; vertical-align: middle; }
.eyebrow { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; color: var(--teal-dark); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 26px; line-height: 1.1; letter-spacing: -.04em; margin-bottom: 10px; }
h2 { font-size: 20px; letter-spacing: -.03em; margin-bottom: 8px; }
h3 { font-size: 15px; margin-bottom: 6px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.card { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 16px; margin-bottom: 14px; box-shadow: 0 4px 16px rgba(16,42,67,.04); }
.card.hero { background: linear-gradient(135deg, #e4f3f2 0%, #f7f5e9 100%); border-color: rgba(8,127,140,.18); box-shadow: var(--shadow); }
.facts { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; color: var(--teal-dark); background: var(--teal-soft); padding: 6px 10px; border-radius: 99px; border: 0; }
.chip.warn { background: var(--yellow); color: #6b5300; }
button.chip { min-height: 44px; min-width: 44px; padding: 6px 12px; }
.primary-button, .secondary-button, .coach-button, .danger-button { border: 0; border-radius: 12px; font-weight: 800; padding: 12px 16px; }
.primary-button { background: var(--ink); color: #fff; }
.secondary-button { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.coach-button { background: var(--coral); color: #fff; }
.danger-button { background: var(--red-soft); color: var(--red); border: 1px solid #f3c1bb; }
.wide { width: 100%; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.section-label { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 850; margin: 18px 2px 8px; }
.list { display: grid; gap: 10px; }
.row-button { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 14px; color: var(--ink); }
.row-button small { display: block; color: var(--muted); font-weight: 500; margin-top: 3px; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.badge.sample { background: var(--yellow); color: #6b5300; }
.badge.ok { background: var(--green-soft); color: var(--green); }
.badge.bad { background: var(--red-soft); color: var(--red); }
.hook { margin: 10px 0 14px; padding: 10px 12px; border-left: 3px solid var(--coral-line); background: #fff8f4; border-radius: 0 10px 10px 0; color: #7f432d; font-weight: 750; font-size: 14px; }
.step-kicker { color: var(--teal-dark); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 900; margin: 16px 0 6px; }
.learn-copy { color: #35536d; line-height: 1.55; font-size: 15px; }
.choice-grid { display: grid; gap: 8px; }
.choice { width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px; color: var(--ink); font-size: 15px; line-height: 1.4; }
.choice.selected { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.choice.correct { border-color: var(--green); background: var(--green-soft); }
.choice.wrong { border-color: var(--red); background: var(--red-soft); }
.result-box { margin-top: 10px; border: 1px dashed #b8e0dd; border-radius: 12px; background: #f2fbfa; padding: 10px 12px; font-size: 14px; }
.stem { font-size: 16px; line-height: 1.45; font-weight: 650; margin-bottom: 12px; }
.rule-note { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.why-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.why-list li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.45; background: #fff; }
.why-list li.is-correct { border-color: var(--green); background: var(--green-soft); }
.why-list li.is-picked:not(.is-correct) { border-color: var(--red); background: var(--red-soft); }
.why-list .opt { font-weight: 750; display: block; margin-bottom: 3px; }
.meta { font-size: 12px; color: var(--muted); line-height: 1.6; }
.bar { position: relative; height: 12px; border-radius: 99px; background: var(--soft); overflow: visible; margin: 6px 0 2px; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--teal); width: 0; }
.bar-line { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--coral-line); }
.bar-row { margin-bottom: 12px; font-size: 13px; }
.bar-row .label { display: flex; justify-content: space-between; gap: 8px; }
.estimate { font-size: 44px; font-weight: 850; letter-spacing: -.04em; line-height: 1; margin: 6px 0; }
.estimate-label { font-size: 13px; font-weight: 750; color: #6b5300; background: var(--yellow); border-radius: 10px; padding: 8px 10px; margin: 6px 0 10px; }
.timer { font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 850; }
.mock-bar { position: sticky; top: 56px; z-index: 4; display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; }
.grid60 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.cell { border: 1px solid var(--line); border-radius: 8px; padding: 8px 0; font-weight: 750; background: #fff; color: var(--ink); font-size: 13px; }
.cell.answered { background: var(--teal-soft); border-color: var(--teal); }
.cell.unanswered { background: #fff; }
.cell.flagged { box-shadow: inset 0 0 0 2px var(--coral-line); }
.flash { min-height: 150px; display: grid; place-items: center; text-align: center; font-size: 18px; font-weight: 700; line-height: 1.4; width: 100%; color: var(--ink); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.seg button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font-weight: 750; font-size: 13px; color: var(--ink); }
.seg button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.bottom-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 660px; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); z-index: 6; padding-bottom: env(safe-area-inset-bottom); }
.nav-item { border: 0; background: none; padding: 8px 2px 10px; display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 750; color: var(--muted); }
.nav-item.active { color: var(--teal-dark); }
.nav-icon { font-size: 14px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(16,42,67,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.coach-sheet { width: 100%; max-width: 660px; background: #fff; border-radius: 20px 20px 0 0; padding: 16px 16px 28px; max-height: 85vh; overflow: auto; }
.sheet-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.coach-boundary { font-size: 13px; color: var(--muted); }
.coach-form { display: flex; gap: 8px; margin-top: 12px; }
.coach-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.coach-answer { margin-top: 12px; font-size: 14px; line-height: 1.5; white-space: pre-line; }
.coach-answer:empty { display: none; }
.coach-answer { background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.notice { font-size: 13px; line-height: 1.5; }
.tier-pick { display: flex; gap: 6px; }
/* Standalone link-outs (Path Skilljar, About, tier-1 card): ≥44px tap height at 390 (Dave finding 7). Inline sentence links (.meta Source) unchanged. */
#app .skilljar a, #app .notice p > a, #tier1Links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
