/* ===========================================================================
   NMOS public site — home page (index.php)
   Loaded after nmos-glass-site.css and nmos-site-components.css.
   Every rule: foundation prefix + one more class, no !important.
   Layout: hero split (copy | crawl log), questions split, panel answers
   (two tiles with log moments + a definition list), install (snippet |
   methods), plan figure, tracking systems link list, FAQ rows, closing CTA.
   Spacing on the 4px grid; tokens only from the foundation.
   =========================================================================== */

/* ---------- 1. Hero: copy left, crawl log right --------------------------- */
body.sentinel-body.sentinel-home:not(.auth-body) .home-hero {
  border-bottom: 1px solid var(--border-subtle);
}
body.sentinel-body.sentinel-home:not(.auth-body) .sentinel-hero.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 52%);
  align-items: center;
  gap: 40px 48px;
  padding: 96px 0;
}
body.sentinel-body.sentinel-home:not(.auth-body) .sentinel-hero.home-hero-grid > * + * { margin-top: 0; }

body.sentinel-body.sentinel-home:not(.auth-body) .home-hero-copy { min-width: 0; }
body.sentinel-body.sentinel-home:not(.auth-body) .home-hero-copy h1 {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(36px, 12px + 3.1vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--on-surface);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-hero-copy .home-hero-sub {
  max-width: 32rem;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--on-surface-variant);
  text-shadow: none;
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-hero-copy .home-hero-actions { margin: 32px 0 0; }

body.sentinel-body.sentinel-home:not(.auth-body) .home-hero-preview { min-width: 0; }

@media (max-width: 959px) {
  body.sentinel-body.sentinel-home:not(.auth-body) .sentinel-hero.home-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 64px 0;
  }
  body.sentinel-body.sentinel-home:not(.auth-body) .home-hero-copy h1 { max-width: 40rem; }
}
@media (max-width: 767px) {
  body.sentinel-body.sentinel-home:not(.auth-body) .sentinel-hero.home-hero-grid { padding: 48px 0 64px; }
  body.sentinel-body.sentinel-home:not(.auth-body) .home-hero-copy .home-hero-sub { margin-top: 16px; }
}

/* ---------- 2. Shared: section split, quiet link --------------------------- */
body.sentinel-body.sentinel-home:not(.auth-body) .home-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 40px 48px;
}
body.sentinel-body.sentinel-home:not(.auth-body) .sentinel-section-head.home-split-head { margin: 0; }

body.sentinel-body.sentinel-home:not(.auth-body) .home-quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  color: var(--on-surface-variant);
  transition: color var(--t-fast) var(--ease);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-quiet-link :is(.lucide-icon, svg.lucide) { width: 16px; height: 16px; color: var(--outline); }
body.sentinel-body.sentinel-home:not(.auth-body) .home-quiet-link:hover { color: var(--on-surface); }

@media (max-width: 899px) {
  body.sentinel-body.sentinel-home:not(.auth-body) .home-split { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 3. Start with these questions: three rows ---------------------- */
body.sentinel-body.sentinel-home:not(.auth-body) .home-question-list {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--border-subtle);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-question {
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-question h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: 0;
  color: var(--on-surface);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-question p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--on-surface-variant);
}

/* ---------- 4. What the panel answers ------------------------------------- */
body.sentinel-body.sentinel-home:not(.auth-body) .home-answer-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px;
}
body.sentinel-body.sentinel-home:not(.auth-body) .sentinel-card.home-answer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
body.sentinel-body.sentinel-home:not(.auth-body) .sentinel-card.home-answer { overflow: hidden; }
body.sentinel-body.sentinel-home:not(.auth-body) .sentinel-card.home-answer > p { margin-bottom: 24px; }
/* The log excerpt is the tile's footer: flush with its edges, one inset surface. */
body.sentinel-body.sentinel-home:not(.auth-body) .sentinel-card.home-answer > .home-answer-log {
  margin: auto -24px -24px;
  padding: 16px 24px;
  border: 0;
  border-top: 1px solid var(--border-subtle);
  border-radius: 0;
}

body.sentinel-body.sentinel-home:not(.auth-body) .home-answer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  margin: 40px 0 0;
  padding: 0;
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-answer-list > li { border-bottom: 1px solid var(--border-subtle); }
body.sentinel-body.sentinel-home:not(.auth-body) .home-answer-list > li:nth-child(-n + 2) { border-top: 1px solid var(--border-subtle); }
body.sentinel-body.sentinel-home:not(.auth-body) .home-answer-row {
  display: grid;
  gap: 4px;
  padding: 20px 0;
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-answer-row-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--on-surface);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--t-fast) var(--ease);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-answer-row:hover .home-answer-row-title { text-decoration-color: var(--outline); }
body.sentinel-body.sentinel-home:not(.auth-body) .home-answer-row-desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface-variant);
}

@media (max-width: 899px) {
  body.sentinel-body.sentinel-home:not(.auth-body) .home-answer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
  body.sentinel-body.sentinel-home:not(.auth-body) .sentinel-card.home-answer > .home-answer-log { padding-inline: 16px; }
}
@media (max-width: 639px) {
  body.sentinel-body.sentinel-home:not(.auth-body) .home-answer-list { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  body.sentinel-body.sentinel-home:not(.auth-body) .home-answer-list > li:nth-child(2) { border-top: 0; }
}

/* ---------- 5. Install: snippet + methods --------------------------------- */
body.sentinel-body.sentinel-home:not(.auth-body) .home-install-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
  gap: 40px 32px;
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-snippet {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--surface-container-lowest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-snippet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-snippet-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--on-surface);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-snippet-file {
  font-family: var(--font-label);
  font-size: 12px;
  line-height: 16px;
  color: var(--outline);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-snippet .home-snippet-code {
  padding: 20px;
  border: 0;
  border-radius: 0;
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-snippet .home-snippet-note {
  max-width: none;
  margin: 0;
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface-variant);
}

body.sentinel-body.sentinel-home:not(.auth-body) .home-install-side { min-width: 0; }
body.sentinel-body.sentinel-home:not(.auth-body) .home-install-list {
  margin: 0;
  border-bottom: 1px solid var(--border-subtle);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-install-row {
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-install-row:first-child { padding-top: 0; border-top: 0; }
body.sentinel-body.sentinel-home:not(.auth-body) .home-install-row dt {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--on-surface);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-install-row dd {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface-variant);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-install-side .home-quiet-link { margin-top: 20px; }

@media (max-width: 1023px) {
  body.sentinel-body.sentinel-home:not(.auth-body) .home-install-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  /* A real snippet wraps on phones instead of scrolling sideways. */
  body.sentinel-body.sentinel-home:not(.auth-body) .home-snippet .home-snippet-code { padding: 16px; }
  body.sentinel-body.sentinel-home:not(.auth-body) .home-snippet .home-snippet-code code { white-space: pre-wrap; overflow-wrap: anywhere; }
  body.sentinel-body.sentinel-home:not(.auth-body) :is(.home-snippet-head, .home-snippet .home-snippet-note) { padding-inline: 16px; }
}

/* ---------- 6. Plan: the crawler count as a set figure -------------------- */
body.sentinel-body.sentinel-home:not(.auth-body) .home-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 32px 48px;
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-plan-num {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--on-surface);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-plan-label {
  margin-top: 16px;
  font-family: var(--font-label);
  font-size: 13px;
  line-height: 20px;
  color: var(--outline);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-plan-copy h2 { margin: 0; }
body.sentinel-body.sentinel-home:not(.auth-body) .home-plan-copy p { max-width: 36rem; margin: 12px 0 0; }
body.sentinel-body.sentinel-home:not(.auth-body) .home-plan-copy .nmos-actions { margin-top: 32px; }

@media (max-width: 899px) {
  body.sentinel-body.sentinel-home:not(.auth-body) .home-plan-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  body.sentinel-body.sentinel-home:not(.auth-body) .home-plan-num { font-size: 80px; letter-spacing: -0.03em; }
  body.sentinel-body.sentinel-home:not(.auth-body) .home-plan-label { margin-top: 12px; }
}

/* ---------- 7. Tracking systems: a dense list of links -------------------- */
body.sentinel-body.sentinel-home:not(.auth-body) .home-systems-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 24px;
  margin: 0;
  padding: 0;
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-systems-list > li { border-bottom: 1px solid var(--border-subtle); }
body.sentinel-body.sentinel-home:not(.auth-body) .home-systems-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  font-size: 15px;
  line-height: 24px;
  color: var(--on-surface-variant);
  transition: color var(--t-fast) var(--ease);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-systems-link :is(.lucide-icon, svg.lucide) {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--outline);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-systems-link:is(:hover, :focus-visible) { color: var(--on-surface); }
body.sentinel-body.sentinel-home:not(.auth-body) .home-systems-link:is(:hover, :focus-visible) :is(.lucide-icon, svg.lucide) { opacity: 1; }
body.sentinel-body.sentinel-home:not(.auth-body) .home-systems-all { margin-top: 24px; }

@media (max-width: 1023px) {
  body.sentinel-body.sentinel-home:not(.auth-body) .home-systems-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  body.sentinel-body.sentinel-home:not(.auth-body) .home-systems-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  body.sentinel-body.sentinel-home:not(.auth-body) .home-systems-link { min-height: 44px; }
}

/* ---------- 8. FAQ: question left, answer right --------------------------- */
body.sentinel-body.sentinel-home:not(.auth-body) .home-faq-list {
  margin: 0;
  border-bottom: 1px solid var(--border-subtle);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-faq-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 8px 48px;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-faq-row dt {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
  color: var(--on-surface);
}
body.sentinel-body.sentinel-home:not(.auth-body) .home-faq-row dd {
  max-width: 40rem;
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--on-surface-variant);
}

@media (max-width: 767px) {
  body.sentinel-body.sentinel-home:not(.auth-body) .home-faq-row { grid-template-columns: minmax(0, 1fr); padding: 20px 0; }
}
