/* ---------- Hero (Ledger: light, on paper, with an annotated figure) ---------- */
.hero { position: relative; background: var(--bg); border-bottom: 1px solid var(--border); overflow: hidden; }
.hero__inner { display: grid; gap: var(--s-7); padding-block: var(--s-8) var(--s-7); align-items: center; }
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.05fr 0.95fr; padding-block: var(--s-9) var(--s-8); gap: var(--s-8); } }
.hero h1 { margin-bottom: var(--s-5); max-width: 14ch; }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--blue); }
.hero .lede { max-width: 38rem; margin-bottom: var(--s-6); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__start { margin-top: var(--s-6); }
.hero__start .subhead { margin-bottom: var(--s-2); }
.hero__visual { justify-self: stretch; width: 100%; max-width: 36rem; }
.hero__steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); border-top: 1px solid var(--border); }
.hero__steps li { border-right: 1px solid var(--border); }
.hero__steps li:last-child { border-right: 0; }
.hero__steps a { display: block; padding: var(--s-5) var(--s-4); color: var(--text); text-decoration: none; height: 100%; }
.hero__steps a:hover { background: var(--surface-alt); color: var(--text); text-decoration: none; }
.hero__steps .step-n { display: block; font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; color: var(--accent-text); }
.hero__steps .step-t { display: block; font-family: var(--font-serif); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }
.hero__steps .step-d { display: block; font-size: var(--fs-sm); color: var(--text-2); margin-top: 2px; }
@media (max-width: 639px) { .hero__steps li { border-right: 0; border-bottom: 1px solid var(--border); } .hero__steps li:last-child { border-bottom: 0; } }

/* ---------- Figure (annotated chart: "Fig. 1") ---------- */
.fig { margin: 0; padding-top: var(--s-3); border-top: 2px solid var(--ink); }
.fig__label { margin: 0 0 var(--s-2); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.fig__title { margin: 0; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); }
.fig__sub { margin: var(--s-1) 0 0; font-size: var(--fs-sm); color: var(--text-2); }
.fig__chart { display: block; width: 100%; height: auto; margin-top: var(--s-4); overflow: visible; }
.fig__grid { stroke: var(--rule); stroke-width: 1; }
.fig__axis { stroke: var(--ink); stroke-width: 2; }
.fig__actual { fill: none; stroke: var(--ink); stroke-width: 2.75; stroke-linejoin: round; stroke-linecap: round; }
.fig__forecast { fill: none; stroke: var(--text-muted); stroke-width: 2; stroke-dasharray: 6 5; stroke-linecap: round; }
.fig__marker { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 2 4; }
.fig__dot { fill: var(--accent); }
.fig__dot-halo { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0.55; }
.fig__chart text { font-family: var(--font-sans); font-size: 15px; fill: var(--text); }
.fig__chart .fig__note--strong { font-weight: 600; fill: var(--accent-text); }
.fig__series { font-weight: 600; }
.fig__chart .fig__series--muted { fill: var(--text-muted); }
.fig__chart .fig__tick { font-family: var(--font-mono); font-size: 13px; fill: var(--text-muted); }
.fig__caption { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }

/* ---------- Mission ---------- */
.mission { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 960px) { .mission { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); } }
.principles { list-style: none; display: grid; gap: var(--s-4); }
.principles li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: start; }
.principles .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-top: 2px; }
.principles .tick svg { width: 16px; height: 16px; }
.principles strong { display: block; }
.principles span { color: var(--text-2); font-size: var(--fs-sm); }
.independence { margin-top: var(--s-5); }

/* ---------- AI Studio panel ---------- */
.studio__grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }

/* ---------- Project framework ---------- */
.framework { list-style: none; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); counter-reset: fw; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.framework li { counter-increment: fw; padding: var(--s-4); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0 -1px -1px 0; }
.framework li::before { content: counter(fw, decimal-leading-zero); display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; color: var(--accent-text); }
.framework strong { display: block; font-size: var(--fs-base); }
.framework span { font-size: var(--fs-xs); color: var(--text-2); display: block; margin-top: 2px; line-height: 1.4; }
.split { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }
.subhead { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin: 0 0 var(--s-3); }

/* ---------- Southern Utah ---------- */
.su { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .su { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-8); align-items: start; } }
.su__quote { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.75rem); line-height: 1.3; letter-spacing: -0.01em; font-style: italic; color: var(--text); margin: 0 0 var(--s-5); text-wrap: balance; font-family: var(--font-serif); font-weight: 600; }
.su__list { list-style: none; display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.su__list li { padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); display: grid; gap: var(--s-2); align-content: start; }
.su__list strong { color: var(--text); font-size: var(--fs-base); }
.su__list span.d { color: var(--text-2); font-size: var(--fs-sm); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--ink); color: var(--on-dark); }
.newsletter h2 { color: var(--on-dark); }
.newsletter__inner { display: grid; gap: var(--s-6); padding-block: var(--s-8); align-items: center; }
@media (min-width: 960px) { .newsletter__inner { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.newsletter h2 { margin-bottom: var(--s-3); }
.newsletter__form { display: grid; gap: var(--s-3); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s-5); }
.newsletter__row { display: grid; gap: var(--s-3); }
@media (min-width: 560px) { .newsletter__row { grid-template-columns: 1fr auto; align-items: end; } }
.newsletter__fine { font-size: var(--fs-xs); color: var(--text-muted); margin: 0; }
.newsletter__list { list-style: none; display: grid; gap: var(--s-2); margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--on-dark-2); }
.newsletter__list li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2); }
.newsletter__list svg { width: 18px; height: 18px; color: var(--accent-on-dark); margin-top: 3px; }

/* ---------- Design-system page ---------- */
.swatches { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.swatch { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.swatch__chip { height: 72px; }
.swatch__body { padding: var(--s-3); font-size: var(--fs-sm); }
.swatch__body strong { display: block; }
.swatch__body code { font-size: 0.8rem; }
.swatch__body small { display: block; color: var(--text-2); margin-top: 2px; line-height: 1.35; }
.type-sample > * { margin-bottom: var(--s-3); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { padding: 0.65rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { background: var(--surface-alt); font-weight: 650; }
.table tr:last-child td { border-bottom: 0; }
.logo-board { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.logo-board > div { padding: var(--s-6); border: 1px solid var(--border); border-radius: var(--radius); display: grid; place-items: center; min-height: 140px; }
.logo-board .dark { background: var(--ink); border-color: var(--ink); }
.logo-board img { max-width: 100%; }
.sw-ink { background: var(--ink); } .sw-blue { background: var(--blue); } .sw-accent { background: var(--accent); } .sw-paper { background: var(--paper); border-bottom: 1px solid var(--border); }
.sw-white { background: var(--white); border-bottom: 1px solid var(--border); } .sw-rule { background: var(--rule); } .sw-accent-text { background: var(--accent-text); } .sw-blue-strong { background: var(--blue-strong); }
.sw-blue-dark { background: var(--blue-on-dark); } .sw-accent-dark { background: var(--accent-on-dark); } .sw-ink-800 { background: var(--ink-800); } .sw-graphite { background: var(--graphite); } .sw-paper-2 { background: var(--paper-2); border-bottom: 1px solid var(--border); }
.sample-frame { border: 1px dashed var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.sample-frame figcaption { padding: var(--s-2) var(--s-4); font-size: var(--fs-xs); color: var(--text-2); background: var(--surface-alt); border-top: 1px solid var(--border); }
.pass { color: var(--ok-text); font-weight: 700; } .fail { color: var(--err-text); font-weight: 700; }
.not-found { padding-block: var(--s-9); max-width: 40rem; }
.su__list li > .badge { justify-self: start; }

/* Heading samples on the design-system page (paragraphs styled like headings, so the page keeps one real h1) */
.t-h1, .t-h2, .t-h3, .t-h4 { font-weight: 700; line-height: var(--lh-tight); letter-spacing: -0.015em; text-wrap: balance; }
.t-h1, .t-h2, .t-h3 { font-family: var(--font-serif); font-weight: 600; }
.t-h1 em { font-style: italic; color: var(--blue); }
.t-h1 { font-size: var(--fs-h1); letter-spacing: -0.022em; line-height: 1.04; }
.t-h2 { font-size: var(--fs-h2); }
.t-h3 { font-size: var(--fs-h3); }
.t-h4 { font-size: var(--fs-h4); }

/* ---------- Stage 3: content pages ---------- */
.page-head { padding-block: var(--s-7) var(--s-6); border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .page-head { padding-block: var(--s-8) var(--s-7); } }
.page-head h1 { max-width: 22ch; }
.page-head .lede { max-width: 46rem; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.page-toc { margin-top: var(--s-5); }
.page-toc .chips { margin-top: var(--s-2); }

.prose { max-width: 46rem; }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose > :first-child, .prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol, .list { padding-left: 1.35rem; margin: 0 0 var(--s-4); }
.prose li, .list li { margin-bottom: var(--s-2); }
.prose li::marker, .list li::marker { color: var(--text-2); }
.prose .notice { margin-block: var(--s-4); }

.sec-head { max-width: 46rem; margin-bottom: var(--s-5); }
.sec-head h2 { margin-bottom: var(--s-2); }
.sec-head p { color: var(--text-2); }

.facts { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin: 0; }
.facts > div { padding: var(--s-4) var(--s-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.facts dt { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin-bottom: var(--s-2); }
.facts dd { margin: 0; font-size: var(--fs-sm); }
.facts dd ul { padding-left: 1.1rem; }
.facts dd li { margin-bottom: 4px; }

.steps { list-style: none; counter-reset: st; display: grid; gap: var(--s-3); margin: 0 0 var(--s-4); padding: 0; }
.steps > li { counter-increment: st; position: relative; padding: var(--s-4) var(--s-4) var(--s-4) 3.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps > li::before { content: counter(st, decimal-leading-zero); position: absolute; left: var(--s-4); top: var(--s-4); font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600; color: var(--accent-text); }
.steps > li > strong { display: block; margin-bottom: 2px; }
.steps > li > span, .steps > li > p { color: var(--text-2); font-size: var(--fs-sm); margin: 0; }

.prompt { margin: var(--s-3) 0 var(--s-4); padding: var(--s-4); background: var(--surface-alt); border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 0.875rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt-meta { font-size: var(--fs-xs); color: var(--text-2); margin: 0; }

.card ul { padding-left: 1.1rem; font-size: var(--fs-sm); color: var(--text-2); }
.card ul li { margin-bottom: 4px; }
.card .subhead { margin-top: var(--s-2); margin-bottom: 0; }

.profile { scroll-margin-top: calc(var(--header-h) + 16px); }
.profile__grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.profile__grid h4 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); font-weight: 600; margin: 0 0 var(--s-2); }
.profile__grid ul { padding-left: 1.1rem; font-size: var(--fs-sm); }
.profile__grid li { margin-bottom: 4px; }

.layout-aside { display: grid; gap: var(--s-7); }
@media (min-width: 1040px) { .layout-aside { grid-template-columns: minmax(0, 1fr) 17rem; } .layout-aside__side { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.side-nav { border-left: 2px solid var(--border); padding-left: var(--s-4); font-size: var(--fs-sm); }
.side-nav ul { list-style: none; display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.side-nav a { text-decoration: none; color: var(--text-2); }
.side-nav a:hover { color: var(--blue-strong); text-decoration: underline; }

.legal-draft { margin-top: var(--s-4); }
.held { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: var(--s-4) var(--s-5); background: var(--surface); font-size: var(--fs-sm); }
.held p:last-child { margin-bottom: 0; }
.held strong { color: var(--text); }
.form-wrap { max-width: 40rem; padding: var(--s-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.cards-tight .card { padding: var(--s-4); }
.small-note { font-size: var(--fs-sm); color: var(--text-2); }
.small-note a { color: inherit; }
.sources { font-size: var(--fs-sm); color: var(--text-2); border-top: 1px solid var(--border); padding-top: var(--s-4); margin-top: var(--s-6); }
/* KISS: plain-language takeaway that opens a page or section */
.takeaway { max-width: 46rem; margin: var(--s-3) 0 var(--s-4); padding: var(--s-3) var(--s-4); background: var(--surface); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); font-size: var(--fs-lg, 1.125rem); }
.section .takeaway { margin-top: 0; }
.glossary { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); margin: 0; }
.glossary > div { padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); scroll-margin-top: calc(var(--header-h) + 16px); }
.glossary dt { font-weight: 600; margin-bottom: 2px; }
.glossary dd { margin: 0; font-size: var(--fs-sm); color: var(--text-2); }
.deeper { margin-top: var(--s-5); }
/* Three audiences: entry paths at the top of each page, and level tags on content */
.entry-paths { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.entry-paths > li { position: relative; padding: var(--s-4) var(--s-5); background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--blue); border-radius: var(--radius); }
.entry-paths > li.is-up { border-top-color: var(--ink, var(--text)); }
.entry-paths > li.is-biz { border-top-color: var(--accent); }
.entry-paths h3 { font-size: var(--fs-h4); margin: var(--s-2) 0 var(--s-2); }
.entry-paths p { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: var(--s-2); }
.entry-paths a.entry-paths__go { font-weight: 600; }
.lvl { display: inline-block; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); background: var(--surface); white-space: nowrap; vertical-align: middle; }
.lvl--new { border-color: var(--blue); color: var(--blue-strong); }
.lvl--up { border-color: var(--text); color: var(--text); }
.lvl--biz { border-color: var(--accent-text); color: var(--accent-text); }
summary .lvl { margin-left: auto; margin-right: var(--s-2); }

/* Launch state: forms whose service is not connected yet (production only) */
.coming-soon { padding: var(--s-4) var(--s-5); border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); max-width: 40rem; }
.coming-soon p { margin: 0 0 var(--s-2); }
.coming-soon p:last-child { margin-bottom: 0; }
.coming-soon__tag { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.coming-soon--dark { background: transparent; border-color: rgba(255,255,255,0.4); color: inherit; }
.coming-soon--dark .coming-soon__tag { color: inherit; }
