/* how-concept-scanner-works.html: this page's own layout. Shared components live in main.css and scanner.css. */

/* The short version: four answers before the walkthrough. */
.hiw-short { padding-top: 0; }
.hiw-short-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 900px; margin: 0 auto; }
.hiw-short-item { background: var(--bg-subtle); border-radius: var(--radius-md); padding: 1.5rem; }
.hiw-short-item h2 { font-family: 'Satoshi', 'Inter', sans-serif; font-size: var(--text-base); font-weight: 700; margin: 0 0 0.5rem; }
.hiw-short-item h2 i { color: var(--purple); margin-right: 0.35rem; }
.hiw-short-item p { font-size: var(--text-sm); color: var(--fg-muted); line-height: 1.55; margin: 0; }

/* A walkthrough step: a number, a heading, and its material. */
.hiw-step { max-width: 980px; margin: 0 auto 4.5rem; }
.hiw-step:last-child { margin-bottom: 0; }
.hiw-step-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 0.75rem; }
.hiw-step-num { font-family: 'Satoshi', 'Inter', sans-serif; font-size: var(--text-sm); font-weight: 700; color: var(--purple); border: 2px solid var(--purple); border-radius: 50%; min-width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hiw-step-head h2 { font-family: 'Satoshi', 'Inter', sans-serif; font-size: var(--text-lg); margin: 0; }
.hiw-step > p { color: var(--fg-2); line-height: 1.65; max-width: 760px; }

/* Who it is for, inside a step: one line each for the two readers. */
.hiw-readers { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0 0; }
.hiw-reader { border-left: 3px solid var(--cyan); padding: 0.25rem 0 0.25rem 1rem; }
.hiw-reader.is-practitioner { border-left-color: var(--purple); }
.hiw-reader strong { display: block; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-subtle); margin-bottom: 0.25rem; }
.hiw-reader p { margin: 0; font-size: var(--text-sm); line-height: 1.6; color: var(--fg-2); }

/* Facts about the run. */
.hiw-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.5rem 0; }
.hiw-fact { background: var(--bg-subtle); border-radius: var(--radius-md); padding: 1.1rem 1.25rem; }
.hiw-fact .hiw-fact-num { font-family: 'Satoshi', 'Inter', sans-serif; font-size: var(--text-xl); font-weight: 700; color: var(--fg); display: block; }
.hiw-fact span { font-size: var(--text-sm); color: var(--fg-muted); line-height: 1.4; }

/* A concept and its source, side by side. */
.hiw-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.hiw-card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; }
.hiw-card h3 { font-family: 'Satoshi', 'Inter', sans-serif; font-size: var(--text-md); margin: 0 0 0.25rem; }
.hiw-card .hiw-label { display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-subtle); margin: 1rem 0 0.25rem; font-weight: 600; }
.hiw-card .hiw-label:first-of-type { margin-top: 0.75rem; }
.hiw-card p { font-size: var(--text-sm); line-height: 1.6; color: var(--fg-2); margin: 0; }
.hiw-card ul { margin: 0.25rem 0 0; padding-left: 1.1rem; }
.hiw-card li { font-size: var(--text-sm); line-height: 1.55; color: var(--fg-2); margin-bottom: 0.2rem; }
.hiw-code { background: var(--bg-inverse); border-radius: var(--radius-md); padding: 1rem 1.25rem; overflow-x: auto; }
.hiw-code-head { font-size: var(--text-xs); color: var(--on-dark-muted); margin: 0 0 0.6rem; font-family: 'SF Mono', 'Fira Code', monospace; }
.hiw-code pre { margin: 0; tab-size: 2; -moz-tab-size: 2; }
.hiw-code code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: var(--text-xs); line-height: 1.6; color: var(--on-dark); white-space: pre; }
.hiw-code mark { background: var(--cyan); color: var(--on-bright); border-radius: 2px; padding: 0 0.15rem; }
.hiw-note { font-size: var(--text-sm); color: var(--fg-muted); margin-top: 0.75rem; line-height: 1.55; }

/* An authentic capture of the app's window. */
.hiw-shot { margin: 1.5rem 0 0; }
.hiw-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.hiw-shot-link { display: block; cursor: zoom-in; }
.hiw-shot figcaption { font-size: var(--text-sm); color: var(--fg-muted); margin-top: 0.6rem; line-height: 1.5; }

/* Questions people ask. */
.hiw-faq { max-width: 780px; margin: 2rem auto 0; display: flex; flex-direction: column; gap: 1.5rem; }
.hiw-faq-item h3 { font-family: 'Satoshi', 'Inter', sans-serif; font-size: var(--text-base); margin: 0 0 0.35rem; }
.hiw-faq-item p { font-size: var(--text-base); line-height: 1.65; color: var(--fg-2); margin: 0; }
.hiw-faq-item a, .hiw-step a, .ps-result-card a { color: var(--cyan-text); }

@media (max-width: 900px) {
  .hiw-facts { grid-template-columns: 1fr 1fr; }
  .hiw-readers { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hiw-short-grid, .hiw-facts { grid-template-columns: 1fr; }
}

/* Card grid. Each scanner-family page sets its own (see scanner.css); this one
   is also used by the review guide and the what-it-sends page. */
.ps-results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
@media (max-width: 768px) { .ps-results-grid { grid-template-columns: 1fr; } }
