/* =============================================================================
   MY SEO AGENTS - Homepage layer
   Loaded only by index.html, after system.css (the shared v2 tokens and
   components). Holds what only the homepage uses: the hero laptop override,
   Industries, the self-check and the proof.
   ============================================================================= */

/* The hero is locked. Only its neutrals inherit the warmer tokens above; the
   laptop keeps its original cool greys so the device still reads as metal. */
body[data-page="home"] .laptop { --ink-2: #131519; --ink-3: #1b1e24; --line: rgba(255,255,255,0.09); --line-2: rgba(255,255,255,0.16); }

/* ------------------------------ Industries -------------------------------
   A typographic index instead of photo tiles. The three trades hang off one
   azure rule because they are kinds of home service; the rest stand alone. */
.hp-ind__head .hp-lead { margin-top: var(--s-5); max-width: 32ch; }
.hp-ind__index { margin-top: var(--hp-gap-head); }
.hp-ind__group-t {
  font-family: var(--font-sans); font-weight: 500; font-size: var(--t-h4);
  letter-spacing: -0.01em; line-height: 1.3; color: var(--smoke);
  padding-bottom: var(--s-4); border-bottom: 1px solid var(--line);
}
.hp-ind__list { counter-reset: none; }
.hp-ind__list li {
  display: flex; align-items: baseline; gap: clamp(1rem, 2vw, 1.75rem);
  padding-block: clamp(0.85rem, 1.3vw, 1.2rem);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 500; font-size: var(--t-index);
  line-height: 1.12; letter-spacing: -0.03em; color: var(--bone);
}
.hp-ind__n {
  flex: 0 0 2.25rem; font-family: var(--font-sans); font-weight: 500; font-size: var(--t-label);
  letter-spacing: 0.04em; color: var(--smoke-2); font-variant-numeric: tabular-nums;
  transform: translateY(-0.35em);
}
.hp-ind__list--nested { position: relative; padding-left: clamp(1rem, 2.2vw, 2rem); }
.hp-ind__list--nested::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--azure-hi);
  transform-origin: top; transition: transform 1.1s var(--ease-out) 0.2s;
}
.reveal:not(.in) .hp-ind__list--nested::before { transform: scaleY(0); }
.hp-ind__list .hp-ind__more { color: var(--smoke); }

/* ------------------------------ Self-check -------------------------------- */
.hp-check { padding-bottom: clamp(3.5rem, 7vw, 7rem); }
.hp-check__card {
  margin-top: var(--s-7);
  background: var(--paper-hi); border: 1px solid var(--rule); border-radius: var(--r-sm);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
  display: grid; gap: var(--s-5); justify-items: start;
}
.hp-check__say { font-size: var(--t-body); color: var(--type-soft); }
.hp-check__q {
  max-width: 26ch; user-select: all;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.375rem, 1rem + 1.6vw, 2rem);
  line-height: 1.25; letter-spacing: -0.025em; color: var(--type);
}
/* The blanks read as places to fill in, brackets included, so the visible
   question matches the copied one. */
.hp-blank {
  color: var(--azure-deep);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em;
  text-decoration-color: rgba(15, 85, 137, 0.4); white-space: nowrap;
}
.hp-check__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--rule); width: 100%; }
.hp-check__foot p { color: var(--type-soft); font-size: var(--t-body); flex: 1 1 18rem; }
.hp-check .check__copy { min-width: 12.5rem; justify-content: center; }

/* -------------------------------- Proof ----------------------------------- */
.hp-proof { padding-top: 0; }
.hp-proof__inner { border-top: 1px solid var(--rule); padding-top: clamp(3.5rem, 7vw, 7rem); }
.hp-proof__lead .hp-body { margin-top: var(--s-5); }
.hp-proof__media { margin-top: var(--hp-gap-head); }
.hp-proof__media img, .hp-frame--portrait {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-sm); background: #e6e0d6;
}
.hp-proof__list { display: grid; margin-top: var(--s-7); }
.hp-proof__item { border-top: 1px solid var(--rule); padding-block: var(--s-6); }
.hp-proof__item:last-child { border-bottom: 1px solid var(--rule); }
.hp-proof__item .hp-h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); margin-bottom: var(--s-3); }
.hp-proof__item .hp-body { color: var(--type-soft); max-width: 48ch; }
.hp-proof__item .proof__cta { margin-top: var(--s-4); }
.hp-proof__end { margin-top: var(--s-7); }

/* ----------------------------- Desktop grid ------------------------------- */
@media (min-width: 900px) {
  .hp-ind__head  { grid-column: 1 / span 5; align-self: start; }
  .hp-ind__index { grid-column: 7 / -1; margin-top: 0; }

  .hp-check__lead { grid-column: 1 / span 5; align-self: center; }
  .hp-check__card { grid-column: 7 / -1; margin-top: 0; }

  .hp-proof__lead  { grid-column: 1 / span 7; }
  .hp-proof__lead .hp-body { max-width: 52ch; }
  .hp-proof__media { grid-column: 1 / span 5; grid-row: 2 / span 2; margin-top: var(--hp-gap-head); align-self: start; position: sticky; top: 7rem; }
  .hp-proof__list  { grid-column: 7 / -1; grid-row: 2; margin-top: var(--hp-gap-head); }
  .hp-proof__end   { grid-column: 7 / -1; grid-row: 3; }
}

@media (max-width: 560px) {
  .hp-check .check__copy { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-ind__list--nested::before { transition: none; }
  .reveal:not(.in) .hp-ind__list--nested::before { transform: none; }
}
