/* Product page-specific styles. */

.prod-hero { padding: 80px 0 48px; background: linear-gradient(180deg, #FDFDFE, var(--off-white-60)); text-align: center; }
.prod-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: 60px; letter-spacing: -0.025em; line-height: 1.05; max-width: 820px; margin: 20px auto; }
.prod-hero p { font-size: 19px; color: var(--color-text-muted); max-width: 640px; margin: 0 auto; line-height: 1.5; }
.prod-hero .ctas { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }

.pillar-nav { position: sticky; top: 68px; z-index: 40; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border); }
.pillar-nav-inner { display: flex; gap: 4px; padding: 12px 0; overflow-x: auto; }
.pillar-nav a { padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--color-text-muted); border-radius: 8px; white-space: nowrap; }
.pillar-nav a:hover { color: var(--color-text); background: var(--off-white-60); }
.pillar-nav a.active { color: var(--color-text); background: var(--off-white-100); }

.pillar { padding: 96px 0; border-bottom: 1px solid var(--color-border); scroll-margin-top: 130px; }
.pillar:nth-child(odd) { background: var(--off-white-40); }
.pillar-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.pillar-grid.rev { grid-template-columns: 1.1fr 1fr; }
.pillar-grid.rev .pillar-copy { order: 2; }
.pillar-grid.rev .pillar-visual { order: 1; }
.pillar h2 { font-family: var(--font-display); font-weight: 600; font-size: 44px; letter-spacing: -0.02em; line-height: 1.08; margin: 20px 0; }
.pillar p.lead { font-size: 19px; color: var(--color-text); line-height: 1.5; margin-bottom: 18px; font-weight: 500; }
.pillar p.support { font-size: 15.5px; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 28px; }
.pillar ul { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.pillar ul li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.5; }
.pillar ul svg { width: 18px; height: 18px; stroke: var(--green-100); fill: none; stroke-width: 2.25; margin-top: 2px; }
.pillar-explore { margin: 16px 0 0; }
.pillar-explore a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--color-text); transition: color 150ms; }
.pillar-explore a:hover { color: var(--green-100); }
.pillar-explore a .arr { width: 16px; height: 16px; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms; }
.pillar-explore a:hover .arr { transform: translateX(3px); }

.pillar-visual { aspect-ratio: 4/3; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); overflow: hidden; position: relative; }
.pv-chrome { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--off-white-60); border-bottom: 1px solid var(--color-border); }
.pv-chrome span { width: 10px; height: 10px; border-radius: 50%; background: #E1E4EC; }
.pv-chrome span.r { background: #FF5F57; } .pv-chrome span.y { background: #FEBC2E; } .pv-chrome span.g { background: #28C840; }
.pv-body { padding: 24px; height: calc(100% - 36px); overflow: hidden; }
.pv-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-bottom: 14px; }

/* Visual: capture (mobile + photo) */
.pv-cap { display: grid; grid-template-columns: 180px 1fr; gap: 20px; height: 100%; }
.pv-mobile { aspect-ratio: 9/19; border-radius: 20px; background: var(--anthracite-100); padding: 6px; position: relative; max-height: 340px; }
.pv-mobile-screen { background: #fff; border-radius: 14px; height: 100%; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; }
.pv-mobile-screen .ph {
  /* Each instance is wired inline in template-product.php to a real
   * inspection-photo WebP — this rule only carries a neutral fallback
   * colour for the case where the inline background-image fails to load. */
  aspect-ratio: 4/3; border-radius: 10px;
  background-color: #2a2a2a;
  background-size: cover;
  background-position: center;
}
.pv-cap-notes { display: flex; flex-direction: column; gap: 10px; padding: 8px; }
.pv-note { padding: 10px 12px; background: var(--off-white-40); border-radius: 10px; font-size: 12px; border-left: 3px solid var(--green-100); }
.pv-note strong { display: block; font-family: var(--font-display); font-size: 14px; margin-bottom: 2px; }

/* Visual: report */
.pv-report { padding: 20px; background: #fff; border: 1px solid var(--color-border); border-radius: 10px; height: 100%; overflow: hidden; }
.pv-report-head { display: flex; justify-content: space-between; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--color-border); margin-bottom: 14px; }
.pv-report-head strong { font-family: var(--font-display); font-size: 16px; display: block; }
.pv-report-head span { font-size: 11px; color: var(--color-text-subtle); }
.pv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-tile {
  aspect-ratio: 4/3; border-radius: 6px;
  /* "Move-in inspection · 14B Sandhurst Road" mock — 6 room photos arranged 3×2.
   * Order reads like a typical move-in walk-through (front of property →
   * common rooms → kitchen → bathroom → bedroom). background-cover crops each
   * 16:9 source to fit the 4:3 tile. */
  background-color: #d6cfc1;
  background-size: cover;
  background-position: center;
}
.pv-tile:nth-child(1) { background-image: url('../assets/inspection-photos/exterior-house-front.webp'); }
.pv-tile:nth-child(2) { background-image: url('../assets/inspection-photos/hallway-corridor.webp'); }
.pv-tile:nth-child(3) { background-image: url('../assets/inspection-photos/living-room-side-angle.webp'); }
.pv-tile:nth-child(4) { background-image: url('../assets/inspection-photos/kitchen-side-angle.webp'); }
.pv-tile:nth-child(5) { background-image: url('../assets/inspection-photos/bathroom-side-angle.webp'); }
.pv-tile:nth-child(6) { background-image: url('../assets/inspection-photos/bedroom-side-angle.webp'); }

/* Visual: actions */
.pv-actions-list { display: flex; flex-direction: column; gap: 10px; }
.pv-action { display: grid; grid-template-columns: 4px 1fr auto; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; align-items: center; }
.pv-action .pri { width: 4px; height: 100%; border-radius: 2px; background: #E0A62B; }
.pv-action.h .pri { background: #D14848; }
.pv-action.l .pri { background: #5577B0; }
.pv-action strong { font-family: var(--font-display); font-size: 14px; display: block; }
.pv-action span.sub { font-size: 11px; color: var(--color-text-subtle); }

/* Visual: audit */
.pv-audit { display: flex; flex-direction: column; gap: 12px; }
.pv-au-row { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--color-border); align-items: start; }
.pv-au-row:last-child { border: none; }
.pv-au-row .t { font-family: var(--font-mono); font-size: 11px; color: var(--color-text-subtle); padding-top: 2px; }
.pv-au-row strong { font-family: var(--font-display); font-size: 14px; display: block; }
.pv-au-row span { font-size: 11px; color: var(--color-text-subtle); }

/* Visual: mobile */
.pv-mobile-showcase { display: flex; gap: 16px; justify-content: center; padding: 20px 0; }
.pv-mobile-showcase .pv-mobile { max-height: 380px; }

/* Visual: integrations */
.pv-int-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: center; height: 100%; }
.pv-int { padding: 14px; background: #fff; border: 1px solid var(--color-border); border-radius: 10px; text-align: center; }
/* .pv-int-logo accepts either text labels or <img> brand logos. The min-height keeps
   the row baseline level whether a tile renders text or an image, and the img rule
   caps logos to a consistent visual height (filenames vary in intrinsic dimensions). */
.pv-int-logo { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; color: var(--anthracite-100); min-height: 22px; display: flex; align-items: center; justify-content: center; }
.pv-int-logo img { max-height: 22px; max-width: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.pv-int-desc { font-size: 10px; color: var(--color-text-subtle); margin-top: 4px; }

/* Compare-link strip — sits between the last content section and the final CTA.
   Light background so it reads as a subtle aside, not a primary action.
   Two side-by-side links separated by a 1px divider; collapses to a stacked
   layout on narrow viewports where the two long labels can't sit on one line. */
.prod-compare-strip { padding: 32px 0; background: var(--off-white-60); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); text-align: center; }
.prod-compare-row {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
}
.prod-compare-sep {
  width: 1px; height: 22px; background: rgba(0,0,0,0.18);
  flex-shrink: 0;
}
.prod-compare-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 600;
  color: var(--anthracite-100);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  padding-bottom: 2px;
  transition: color var(--motion-base) var(--ease-standard), border-color var(--motion-base) var(--ease-standard);
}
.prod-compare-link:hover { color: var(--green-100); border-bottom-color: var(--green-100); }
.prod-compare-link svg { width: 16px; height: 16px; transition: transform var(--motion-base) var(--ease-standard); }
.prod-compare-link:hover svg { transform: translateX(4px); }
@media (max-width: 900px) {
  /* Two long labels can't sit on one line — stack vertically and hide
     the divider (the gap + flex-direction change carries the visual
     separation by itself). */
  .prod-compare-row { flex-direction: column; gap: 18px; }
  .prod-compare-sep { display: none; }
}
@media (max-width: 640px) {
  .prod-compare-strip { padding: 24px 16px; }
  .prod-compare-link { font-size: 15px; }
}

/* "Everything else you need to run inspection operations" — compact
   4-card capability summary that sits between the Client & Stakeholder
   pillar and Integrations. Lower visual weight than the full pillar
   pattern (no animated mock, no alternating layout) so the 4 cards read
   as "completeness signals" rather than lead messages. Each card deep-
   links into the matching section on /platform/ for the full story.

   `.prod-enterprise-proof` is the subtle one-liner positioning sentence
   above the section head — italic, muted, centred. */
.prod-everything { padding: 96px 0; border-bottom: 1px solid var(--color-border); scroll-margin-top: 130px; background: var(--off-white-40); }
.prod-enterprise-proof {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 720px;
  margin: 0 auto 56px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.prod-everything-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.prod-everything-head .kicker { justify-content: center; }
.prod-everything-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 44px; letter-spacing: -0.02em; line-height: 1.08; margin: 16px 0; }
.prod-everything-head p.lead { font-size: 17px; color: var(--color-text-muted); line-height: 1.55; }
.prod-everything-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.prod-everything-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--motion-base) var(--ease-standard),
              box-shadow var(--motion-base) var(--ease-standard),
              border-color var(--motion-base) var(--ease-standard);
}
.prod-everything-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-100);
}
.prod-everything-card .pe-ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green-20);
  color: var(--green-text);
  display: flex; align-items: center; justify-content: center;
}
.prod-everything-card .pe-ic svg { width: 22px; height: 22px; }
.prod-everything-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 4px 0 0;
}
.prod-everything-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}
.prod-everything-card a {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--anthracite-100);
  text-decoration: none;
  transition: color var(--motion-base) var(--ease-standard);
}
.prod-everything-card a .arr { width: 14px; height: 14px; transition: transform var(--motion-base) var(--ease-standard); }
.prod-everything-card:hover a { color: var(--green-100); }
.prod-everything-card:hover a .arr { transform: translateX(3px); }

.final-cta { background: var(--gradient-primary); color: #fff; padding: 96px 0; text-align: center; }
.final-cta h2 { font-family: var(--font-display); font-weight: 600; font-size: 48px; letter-spacing: -0.02em; color: #fff; }
.final-cta .btns { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }

@media (max-width: 960px) {
  /* 4-up grid collapses to 2-up on tablet so each card stays readable. */
  .prod-everything-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  /* Stack the pillar row on phones: visual goes FULL-WIDTH on top, copy below. */
  .pillar-grid,
  .pillar-grid.rev {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pillar-grid .pillar-visual,
  .pillar-grid.rev .pillar-visual { order: 1; width: 100%; }
  .pillar-grid .pillar-copy,
  .pillar-grid.rev .pillar-copy { order: 2; }
  .pillar h2 { font-size: 32px; }
  .pillar p.lead { font-size: 17px; }
  /* "Everything else" grid: 1-up at phone widths so the cards remain readable. */
  .prod-everything { padding: 64px 0; }
  .prod-everything-head h2 { font-size: 30px; }
  .prod-enterprise-proof { font-size: 16px; margin-bottom: 40px; }
  .prod-everything-grid { grid-template-columns: 1fr; gap: 14px; }
  .prod-everything-card { padding: 22px 20px; }
}
