/* ============================================================
   CoreGuardian — Home page sections
   Loads AFTER styles.css. Uses only the tokens defined there —
   no new colours, no new fonts.
   ============================================================ */

/* ── Layout ────────────────────────────────────────────────── */
/* The base .wrapper centres a single screenful. The home page is
   now a long document, so anchor it to the top instead. */
.wrapper--home {
  justify-content: flex-start;
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: calc(var(--foot-h) + 64px);
}

/* ── Sections ──────────────────────────────────────────────── */
.section {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: left;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-muted);
  text-align: center;
  margin-bottom: 22px;
}

.section-lede {
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 300;
  line-height: 1.8;
  color: var(--white-dim);
  margin-bottom: 20px;
}

/* Pulled-out line — the point of the section, not decoration. */
.section-emphasis {
  font-family: var(--font-body);
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 400;
  line-height: 1.8;
  color: var(--white);
  border-left: 2px solid var(--green-mid);
  padding-left: 18px;
  margin-top: 24px;
}

/* Below-the-fold content must not be animation-gated: the shared
   delays would leave it blank for seconds if a visitor scrolls fast. */
.section .pillars {
  animation: none;
  margin-bottom: 0;
}

/* ── Checklist vs reality ──────────────────────────────────── */
.compare-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 3px;
  padding: 18px 20px;
  transition:
    border-color var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out);
}

.compare-row:hover {
  border-color: rgba(125, 255, 138, 0.28);
  background: rgba(125, 255, 138, 0.04);
}

/* The claim — what the checklist asserts. Deliberately muted. */
.compare-claim {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--white-muted);
  text-transform: uppercase;
  position: relative;
  padding-left: 20px;
}

.compare-claim::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--white-muted);
}

/* The finding — what is actually true. This is the payload. */
.compare-find {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--white-dim);
  position: relative;
  padding-left: 20px;
}

.compare-find::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--green-bright);
}

/* ── How it works ──────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 3px;
  padding: 18px 20px;
  transition:
    border-color var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out);
}

.step:hover {
  border-color: rgba(125, 255, 138, 0.28);
  background: rgba(125, 255, 138, 0.04);
}

.step-num {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--green-mid);
  line-height: 1.9;
}

.step-body {
  flex: 1 1 auto;
}

.step-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 6px;
}

.step-text {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--white-dim);
}

/* ── Today / next ──────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.split-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 3px;
  padding: 20px;
}

.split-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.split-text {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--white-dim);
}

/* ── Data-source chips ─────────────────────────────────────── */
/* Reuses .pillar from styles.css; only the overflow chip differs. */
.pillar--more {
  border-style: dashed;
}

/* ── Hero call to action ───────────────────────────────────── */
.hero-cta-wrap {
  margin-bottom: 44px;
  animation: fadeUp 0.9s var(--ease-out) 1.8s both;
}

/* The page's only primary action, in the hero and again at the foot. */
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 52px;
  padding: 16px 40px;
  border-radius: 2px;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--green-bright);
  overflow: hidden;
  touch-action: manipulation;
  transition:
    background var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-spring);
}

.hero-cta:hover {
  background: #AFFFB7;
  box-shadow: 0 0 24px rgba(125, 255, 138, 0.45), 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.hero-cta:active {
  transform: translateY(0);
  box-shadow: 0 0 12px rgba(125, 255, 138, 0.25);
}

/* ── Trust line ────────────────────────────────────────────── */
.trust {
  width: 100%;
  max-width: 680px;
  margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.trust-line {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--white-dim);
  margin-bottom: 12px;
}

.trust-line strong {
  font-weight: 500;
  color: var(--white);
}

.trust-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--white-muted);
  text-transform: uppercase;
}

.trust-contact a {
  color: var(--teal);
  transition: color var(--dur-fast) var(--ease-out);
}

.trust-contact a:hover {
  color: var(--green-bright);
}

.trust-sep {
  color: var(--white-faint);
}

/* ── Responsive: two columns once there is room ────────────── */
@media (min-width: 720px) {
  .compare-row {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 20px;
    align-items: start;
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Responsive: mobile ────────────────────────────────────── */
@media (max-width: 480px) {
  .section {
    margin-bottom: 48px;
  }

  .compare-row,
  .step {
    padding: 16px;
  }

  .step {
    gap: 12px;
  }
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .section,
  .hero-cta-wrap,
  .trust {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Closing call to action ────────────────────────────────── */
/* Lead capture is the Zoho form on /demo — this page only routes there. */
.closing-cta {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.closing-text {
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--white-dim);
  margin-bottom: 22px;
}
