/* Interior-page components — loaded on all pages EXCEPT the homepage and the
   legal pages. Reuses the same tokens as sections.css; only adds patterns the
   homepage doesn't already have (interior hero, breadcrumb, checklist, FAQ,
   detail/contact layouts). */

/* No announcement bar on interior pages — give in-page anchors a smaller offset
   than the homepage's 116px (header is pinned to the top here). */
html { scroll-padding-top: 88px; }

/* ---- Interior page hero ---- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(116px, 15vh, 172px) 0 var(--space-8);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
  background:
    radial-gradient(1100px 420px at 18% -10%, rgba(37, 99, 235, 0.09), transparent 60%),
    radial-gradient(820px 360px at 92% 0%, rgba(79, 70, 229, 0.06), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: var(--space-4); }
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 20ch;
  color: var(--fg);
}
.page-hero__title em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero__lede {
  margin-top: var(--space-5);
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--fg-muted);
}
.page-hero__actions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.page-hero__meta {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}
.page-hero__meta span { display: inline-flex; align-items: center; gap: var(--space-2); }
.page-hero__meta span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--lime-glow);
}

/* ---- Tag row (stack chips on detail pages; homepage scopes its own under .hero__trustrow) ---- */
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag-row__label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.04em;
  color: var(--fg-dim);
}
.breadcrumb a { color: var(--fg-dim); }
.breadcrumb a:hover { color: var(--accent-bright); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb [aria-current] { color: var(--fg-muted); }

/* ---- Checklist (deliverables) ---- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}
.checklist li {
  font-size: 1rem;
  color: var(--fg-muted);
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
}
.checklist li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex: none;
}
.checklist li strong { color: var(--fg); font-weight: 600; }
@media (min-width: 700px) { .checklist--2col { grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-6); } }

/* ---- Detail layout (service / industry pages) ---- */
.detail-split {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 900px) {
  .detail-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-8);
    align-items: start;
  }
}
.detail-aside {
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(8, 9, 12, 0.6) 100%);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: var(--space-4);
  align-content: start;
}
.detail-aside h3 { font-size: 1.0625rem; }
.detail-block { display: grid; gap: var(--space-4); }
.detail-block h3 { font-size: 1.25rem; }
.detail-lede { font-size: 1.125rem; color: var(--fg-muted); max-width: 62ch; }

/* ---- FAQ accordion (native details/summary, no JS) ---- */
.faq {
  display: grid;
  gap: var(--space-3);
  max-width: 840px;
}
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.faq__item[open] { border-color: #333C4E; }
.faq__q {
  list-style: none;
  cursor: pointer;
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent-bright); }
.faq__q:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq__q::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid var(--fg-dim);
  border-bottom: 2px solid var(--fg-dim);
  transform: rotate(45deg);
  transition: transform var(--dur-fast) var(--ease-out);
  flex: none;
  margin-top: -4px;
}
.faq__item[open] .faq__q::after { transform: rotate(225deg); margin-top: 2px; }
.faq__a { padding: 0 var(--space-6) var(--space-5); }
.faq__a p { color: var(--fg-muted); font-size: 1rem; }
.faq__a p + p { margin-top: var(--space-3); }
.faq__a a { color: var(--accent-bright); }

/* ---- Contact layout ---- */
.contact-grid { display: grid; gap: var(--space-7); }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-8); align-items: start; }
}
.contact-points { display: grid; gap: var(--space-5); align-content: start; }
.contact-point { display: grid; gap: var(--space-2); }
.contact-point h3 { font-size: 1.0625rem; }
.contact-point p { font-size: 0.9375rem; }
.contact-point a { color: var(--accent-bright); }

/* ---- Lead-in prose block (about / overview intros) ---- */
.prose { max-width: var(--maxw-prose); display: grid; gap: var(--space-4); }
.prose p { font-size: 1.0625rem; color: var(--fg-muted); }
.prose p strong { color: var(--fg); font-weight: 600; }

/* ---- Simple stat row (industry / service proof) ---- */
.statline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-8);
  margin-top: var(--space-6);
}
.statline__item { display: grid; gap: 2px; }
.statline__metric {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.statline__label {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
}
