/* ============================================================================
   Marc Infotech — home.css
   ----------------------------------------------------------------------------
   Page-specific styles for the Home page (/). Sections 2–7 (post-hero).
   Hero styles live in layout.css.

   Sections:
     2. Social proof strip  (.social-proof)
     3. How it works        (.how-it-works + .step)
     4. Featured product    (.featured-product)
     5. Process principles  (.principles)
     6. CTA band            (.cta-band)
     7. Footer              (already lives in layout.css; this file adds a
                             small tweak if needed)
   ========================================================================== */

/* ============================================================================
   2. Social proof strip
   ----------------------------------------------------------------------------
   Thin band between hero and "How it works". ONE line of italic serif copy
   + 3 named buyer segments (NO fake logos, NO "10,000+ companies").
   ========================================================================== */
.social-proof {
  padding-block: var(--space-12);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg);
}

.social-proof__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-start;
}

.social-proof__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.0625rem, 1.2vw + 0.5rem, 1.375rem);
  font-style: italic;
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
  color: var(--color-text-muted);
  max-width: 60ch;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
.social-proof__quote::before {
  /* Soft open-quote glyph as a typographic marker — no decoration,
     just a single serif mark. */
  content: "\201C";
  color: var(--color-accent);
  margin-right: 0.15ch;
}
.social-proof__quote::after {
  content: "\201D";
  color: var(--color-accent);
  margin-left: 0.15ch;
}

.social-proof__segments {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-subtle);
}
.social-proof__segment {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.social-proof__segment + .social-proof__segment::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-border-strong);
}

@media (min-width: 768px) {
  .social-proof__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-10);
  }
  .social-proof__quote { flex: 0 1 auto; }
  .social-proof__segments { flex: 0 0 auto; }
}

/* ============================================================================
   3. How it works
   ----------------------------------------------------------------------------
   Asymmetric, vertical-numbered sequence. NOT an equal-weight 3-tile grid.
   Each step is a numbered block (01, 02, 03 in JetBrains Mono) with a
   serif heading and 1-sentence body. On desktop the column of numbers
   sits to the left and steps stack to the right — single editorial column.
   ========================================================================== */
.how-it-works {
  /* Re-uses .section rhythm */
}

.how-it-works__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  /* Inset from the section container so the list feels like a single column */
  max-width: 720px;
  margin-inline: auto;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-6);
  align-items: baseline;
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.step:last-child {
  border-bottom: 1px solid var(--color-border);
}

.step__num {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.step__num::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--color-border-strong);
}

.step__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.step__title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.4vw + 0.5rem, 1.625rem);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
  color: var(--color-text);
}

.step__desc {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: var(--lh-normal);
  max-width: 56ch;
}

.step__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-subtle);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

/* Desktop: widen the number column slightly and pull the list off-centre to
   break the symmetric-stack feeling without going full hero. */
@media (min-width: 1024px) {
  .how-it-works__list {
    max-width: 820px;
    margin-inline: 0;       /* left-align against the section gutter */
  }
  .step {
    grid-template-columns: 96px 1fr;
    gap: var(--space-10);
  }
  .step__num {
    font-size: 1.25rem;
  }
  .step__num::after {
    width: 32px;
  }
}

/* ============================================================================
   4. Featured product — AI Lead Router card
   ----------------------------------------------------------------------------
   Single prominent card that links to /productized-services/. Visual half =
   smaller terminal panel (reuse .terminal--sm modifier defined in
   components.css). Text half = eyebrow + serif h2 + 1-sentence subhead +
   inline link + tag-style specs.
   ========================================================================== */
.featured-product {
  /* Inherits .section rhythm */
}

.featured-product__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: stretch;
  background-color: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition:
    border-color var(--motion-base),
    box-shadow var(--motion-base);
}
.featured-product__card:hover,
.featured-product__card:focus-within {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-2);
}

@media (min-width: 1024px) {
  .featured-product__card {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--space-12);
    padding: var(--space-12);
  }
}

.featured-product__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.featured-product__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent);
}
.featured-product__eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--color-accent);
}

.featured-product__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.2vw + 0.75rem, 2.5rem);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
  color: var(--color-text);
  margin-block: var(--space-2) var(--space-3);
}

.featured-product__subhead {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: var(--lh-normal);
  max-width: 50ch;
}

.featured-product__link {
  margin-top: var(--space-2);
}

.featured-product__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.featured-product__spec {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-3);
  white-space: nowrap;
}

.featured-product__media {
  min-width: 0;
  display: flex;
  align-items: stretch;
}
.featured-product__media .terminal {
  width: 100%;
}

/* ============================================================================
   5. Process principles
   ----------------------------------------------------------------------------
   3 columns on desktop, but NOT equal-weight. Centre column slightly
   emphasised: tighter background tint + accent border. NO icon toppers.
   ========================================================================== */
.principles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.principle {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8);
  background-color: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.principle__num {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-subtle);
  margin-bottom: var(--space-1);
}

.principle__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
  color: var(--color-text);
  text-wrap: balance;
}

.principle__body {
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
  max-width: 48ch;
}

@media (min-width: 768px) {
  .principles__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
    align-items: stretch;
  }
  .principle {
    /* Asymmetric weight — middle column gets a small visual lift
       (subtle tint + accent border) so the eye lands there first. */
    padding: var(--space-6);
  }
  .principle:nth-child(2) {
    background-color: var(--color-surface-2);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow-accent);
    padding-block: var(--space-10);
    transform: translateY(-8px);
  }
  .principle:nth-child(2) .principle__num {
    color: var(--color-accent);
  }
}

/* ============================================================================
   6. CTA band
   ----------------------------------------------------------------------------
   Full-width, low-height band at the bottom of the home page. Type + button
   only — no decoration. Centered composition is allowed here because the
   surface is "Decide" and the message is single-purpose.
   ========================================================================== */
.cta-band {
  background-color: var(--color-surface-1);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-12);
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.cta-band__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.5vw + 0.75rem, 2.5rem);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
  color: var(--color-text);
  text-wrap: balance;
}

.cta-band__sub {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: var(--lh-normal);
  max-width: 50ch;
}

.cta-band__action {
  margin-top: var(--space-2);
}

/* ============================================================================
   Reduced motion — honour the system preference across all home-page sections.
   Most of these sections have no transform/animation; this only shortens the
   transition durations to 0 (which the tokens already do).
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .featured-product__card,
  .principle {
    transition: none;
  }
  .principle:nth-child(2) {
    transform: none;
  }
}