/*
 * SentryNeural.com - Shared page styles (AI + Cloud pillar pages)
 * Mobile-first. Uses tokens from style.css.
 */

.page-hero {
  position: relative;
  padding: 110px 0 48px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: clip;
}
.page-hero h1 { margin: 0 0 16px; overflow-wrap: anywhere; }
.page-hero p { max-width: 62ch; color: var(--text-secondary); font-size: 1.125rem; }

.section-lead {
  max-width: 68ch;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin: 0 0 32px;
}

/* Two equal pillars: identical sizing, stacked under 768px */
.pillar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.pillar-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-top: 3px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.pillar-panel h2, .pillar-panel h3 { margin-top: 0; }
.pillar-panel p { color: var(--text-secondary); }
.pillar-panel .btn { margin-top: auto; align-self: flex-start; }

.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.offer-card {
  min-width: 0;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.offer-card:hover { border-color: var(--border-glow); box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07); }
.offer-card h3 { margin: 0 0 8px; font-size: 1.125rem; color: var(--text-main); }
.offer-card p { margin: 0; color: var(--text-secondary); }

.deliverable-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.deliverable-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}
.deliverable-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.1em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.usecase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.usecase-grid > * {
  min-width: 0;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.phase-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: phase;
}
.phase-list > li {
  position: relative;
  counter-increment: phase;
  padding: 0 0 24px 52px;
  min-width: 0;
}
.phase-list > li::before {
  content: counter(phase);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
}
.phase-list > li::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 4px;
  width: 2px;
  background: var(--border-subtle);
}
.phase-list > li:last-child::after { display: none; }

.secure-block {
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-lg);
}
.secure-block h2, .secure-block h3 { margin-top: 0; }

.tech-depth {
  margin: 24px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
}
.tech-depth > summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--accent-primary);
  list-style: none;
}
.tech-depth > summary::-webkit-details-marker { display: none; }
.tech-depth > summary::before { content: "+"; display: inline-block; width: 1.25em; font-family: var(--font-mono); }
.tech-depth[open] > summary::before { content: "\2212"; }
.tech-depth > summary:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }
.tech-depth > :not(summary) { padding: 0 18px 18px; }

.cta-band {
  padding: 40px 24px;
  text-align: center;
  color: #fff;
  background: var(--accent-gradient);
  border-radius: var(--radius-xl);
}
.cta-band h2, .cta-band h3, .cta-band p { color: #fff; }

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll table { min-width: 560px; width: 100%; }

@media (min-width: 768px) {
  .page-hero { padding: 140px 0 72px; }
  .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .pillar-panel { padding: 36px 32px; }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usecase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { padding: 56px 40px; }
}
@media (min-width: 1100px) {
  .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   Products (hub and Nexus page)
   ========================================================================== */

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--accent-primary);
  border-radius: 999px;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: var(--bg-card);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 24px; }
.btn-outline {
  display: inline-block;
  padding: 12px 22px;
  border: 1.5px solid var(--accent-primary);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { background: var(--accent-primary); color: #fff; text-decoration: none; }
.btn-outline:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 3px; }

.offer-card.roadmap-card {
  border-style: dashed;
  background: var(--bg-surface);
  color: var(--text-secondary);
}
.offer-card.roadmap-card:hover { border-color: var(--border-card); box-shadow: none; }

/* Marked placeholder for screenshots and video until real assets arrive */
.product-shot { margin: 32px 0 0; }
.product-shot img, .product-shot video { display: block; width: 100%; height: auto; border: 1px solid var(--border-card); border-radius: var(--radius-md); }
.product-shot figcaption { margin-top: 8px; font-size: 14px; color: var(--text-muted); }
.shot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  padding: 24px;
  border: 2px dashed var(--text-muted);
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
  overflow-wrap: anywhere;
}

.capability {
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
}
.capability:first-of-type { border-top: 0; padding-top: 8px; }
.capability h3 { margin: 0 0 8px; }
.capability-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.capability-grid > * { min-width: 0; }
.capability .proof {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-left: 3px solid var(--accent-primary);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.capability .proof strong { color: var(--text-main); }
.label-illustrative {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.ascii-diagram {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  background: #111728;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
}
.ascii-diagram:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }

.stack-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
.stack-list li {
  padding: 4px 12px;
  border: 1px solid var(--border-card);
  border-radius: 999px;
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-main);
}

.beta-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.beta-grid > * { min-width: 0; }

@media (min-width: 768px) {
  .capability-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 32px; }
}
@media (min-width: 992px) {
  .beta-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; }
}
