/* Commercial Insights Group: inner pages (how it works, coverage, pricing questions,
   about, request access, privacy, data sources, sign in, errors). Loaded after site.css. */

/* Inner page heads */
.page-head { padding: clamp(52px, 7vw, 100px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 20px; }
.page-head.photo { position: relative; border-bottom: 0; min-height: clamp(380px, 42vw, 560px); display: flex; align-items: flex-end; overflow: hidden; background: #0b1430; }
.page-head.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 22, 48, .25) 0%, rgba(14, 22, 48, .55) 50%, rgba(14, 22, 48, .97) 100%); }
.page-head.photo .wrap { position: relative; z-index: 1; }
.page-head.photo .lead { color: #c9d1e0; }

/* Two-column text blocks on inner pages */
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); padding: clamp(48px, 6vw, 84px) 0; border-top: 1px solid var(--line); }
.split:first-child { border-top: 0; }
.split > div > * + * { margin-top: 16px; }
.split p, .split li { color: var(--muted); }
.split strong { color: var(--text); font-weight: 600; }
.split ul { list-style: none; display: grid; gap: 12px; }
.split ul li { padding-left: 22px; position: relative; }
.split ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; border-top: 1.5px solid var(--accent); }

/* Data tables on inner pages */
.dtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.dtable th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.dtable td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--text); }
.dtable .num { text-align: right; font-variant-numeric: tabular-nums; }
.dtable th + th, .dtable td + td { padding-left: 20px; }
.dtable .nowrap { white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--accent); }
.status.live::before { background: var(--accent); }

/* Score weights */
.weights { display: grid; gap: 14px; margin-top: 8px; }
.weight { display: grid; grid-template-columns: 120px minmax(0, 1fr) 56px; gap: 16px; align-items: center; }
.weight .bar { height: 10px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.weight .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; width: var(--w); }
.weight b { font-weight: 600; font-stretch: 106%; color: var(--text); }
.weight span { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.roadmap h3 { font-size: 1rem; margin-bottom: 10px; }
.roadmap ul { list-style: none; display: grid; gap: 6px; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-stretch: 106%; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 0 24px; color: var(--muted); max-width: 46em; }

/* Prose */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.4rem; font-stretch: 108%; margin: 2.2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1em; }
.prose ul { padding-left: 1.2em; display: grid; gap: .45em; }
.prose strong { color: var(--text); font-weight: 600; }

/* Request page */
.req { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(48px, 6vw, 84px); align-items: start; }
.next { list-style: none; counter-reset: nx; display: grid; gap: 22px; margin-top: 18px; }
.next li { position: relative; padding-left: 44px; color: var(--muted); }
.next li::before { counter-increment: nx; content: counter(nx); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent-text); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.next b { display: block; color: var(--text); font-weight: 600; }

/* Error */
.error-page { padding: clamp(80px, 12vw, 160px) 0; }
.error-page .code { font-size: 14px; color: var(--accent-text); font-weight: 600; margin-bottom: 14px; }

/* Login */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 69px); }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 80px) var(--gutter); }
.auth-form > div { width: 100%; max-width: 400px; margin: 0 auto; }
.auth-form form { display: grid; gap: 18px; margin-top: 30px; }
.auth-form .btn { width: 100%; }
.auth-photo { position: relative; overflow: hidden; border-left: 1px solid var(--line); background: #0b1430; }
.auth-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Responsive */
@media (max-width: 1080px) {
  .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .split, .req, .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-photo { display: none; }
  .auth { min-height: 0; }
}
@media (max-width: 760px) {
  .roadmap { grid-template-columns: minmax(0, 1fr); }
  .weight { grid-template-columns: 96px minmax(0, 1fr) 44px; gap: 10px; }
}

/* Small reference tables stack on phones */
@media (max-width: 760px) {
  .dtable.stacked thead { display: none; }
  .dtable.stacked, .dtable.stacked tbody, .dtable.stacked tr, .dtable.stacked td { display: block; }
  .dtable.stacked tr { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .dtable.stacked td { padding: 0; border: 0; }
  .dtable.stacked td + td { margin-top: 6px; }
  .dtable.stacked .status { white-space: normal; }
  .dtable.labelled td[data-label] { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; text-align: right; }
  .dtable.labelled td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 14px; text-align: left; }
  .dtable.labelled td.block[data-label] { display: block; text-align: left; }
  .dtable.labelled td.block[data-label]::before { display: block; margin-bottom: 2px; }
}
