/* ── V2 CONTAINED WIDTH ──
   LendIQ keeps page content in a centered ~1280px column even on wide
   screens, rather than stretching to fill the viewport with fixed edge
   padding. Scoped to this stylesheet so V1's full-width sections are
   unaffected; section backgrounds (navy/off-white/etc.) stay full-bleed,
   only the content grids inside are constrained and centered. */
.v2-grid,
.v2p-overview,
.process-grid {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* ── V2 HEADING WEIGHT ──
   Lighter than the site-wide default (900) to match the MoveOps logo (700).
   Scoped to this stylesheet so V1 pages are unaffected. */
h2.section-title,
.page-banner h1,
.cta-banner h3 {
  font-weight: 700;
}

/* ── V2 PREVIEW NOTE ── */
.v2-preview-note {
  background: #fef3c7;
  color: #78350f;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  text-align: center;
  padding: 10px 24px;
  border-bottom: 1px solid #fde68a;
}

/* ── V2 HERO ── */
.v2-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
}
.v2-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -8%;
  width: 55%;
  height: 160%;
  background: linear-gradient(135deg, rgba(122,179,255,0.14), rgba(37,99,235,0.20));
  clip-path: polygon(64% 0%, 100% 0%, 100% 100%, 34% 100%);
  pointer-events: none;
}
.v2-hero > * { position: relative; z-index: 1; }

/* Two extra diagonal lines alongside the panel edge, in the logo's blue-sky
   and blue tones. Uses the exact same clip-path coordinate system as the
   panel's own diagonal (.v2-hero::before) so the slope matches precisely
   at any viewport width, rather than approximating with a fixed skewX(). */
.v2-hero-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.v2-hero-lines span { position: absolute; inset: 0; }
.v2-hero-lines span:nth-child(1) {
  background: var(--blue-sky);
  opacity: 0.55;
  clip-path: polygon(88% 0%, 83.31% 0%, 72.99% 100%, 77.68% 100%);
}
.v2-hero-lines span:nth-child(2) {
  background: var(--blue);
  opacity: 0.45;
  clip-path: polygon(104% 0%, 99.31% 0%, 88.99% 100%, 93.68% 100%);
}

@media (max-width: 640px) {
  .v2-hero-lines { display: none; }
}

/* ── V2 PRODUCT GRID ── */
.v2-products {
  padding: 88px 56px;
  background: var(--off-white);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.v2-products .eyebrow { justify-content: center; }
.v2-products h2.section-title { max-width: 640px; margin: 0 auto; }

.v2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 52px;
  text-align: left;
}

.v2-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(18,22,63,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  cursor: pointer;
}
.v2-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(18,22,63,0.12);
}

.v2-card-img {
  height: 160px;
  background-size: cover;
  background-position: center;
}

.v2-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 22px 26px;
}

.v2-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.v2-card-title .t-blue { color: var(--blue); }

.v2-card-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  flex: 1;
}

.v2-card-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
}
.v2-card-link svg { transition: transform 0.2s; }
.v2-card:hover .v2-card-link svg { transform: translateX(3px); }

@media (max-width: 960px) {
  .v2-products { padding: 56px 24px; }
  .v2-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .v2-grid { grid-template-columns: 1fr; }
}

/* ── V2 PRODUCT PAGE ── */
.v2p-hero { text-align: center; padding-top: 72px; padding-bottom: 72px; }
.v2p-hero .eyebrow { justify-content: center; }
.v2p-hero h1 { max-width: 720px; margin-left: auto; margin-right: auto; }
.v2p-hero p { max-width: 700px; margin-left: auto; margin-right: auto; color: white; }

.v2p-hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.v2p-hero-ctas a { display: inline-flex; align-items: center; gap: 8px; }
.v2p-hero-ctas .btn-ghost { font-size: 13px; font-weight: 700; }

.v2p-overview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  padding: 88px 56px;
  background: white;
}
.v2p-overview-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(18,22,63,0.14);
  height: 420px;
  background-size: cover;
  background-position: center;
}
.v2p-overview h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.v2p-overview-copy {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 28px;
}
.v2p-checklist { display: flex; flex-direction: column; gap: 14px; }
.v2p-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.v2p-checklist-item svg { flex-shrink: 0; color: var(--blue); margin-top: 2px; }

.v2p-who {
  background: white;
  padding: 72px 56px;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.v2p-who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  border-right: none;
  border-bottom: none;
  margin-top: 36px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.v2p-who-card {
  background: white;
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s;
}
.v2p-who-card:hover { background: var(--light-grey); }
.v2p-who-icon { color: var(--blue); margin-bottom: 14px; }
.v2p-who-label {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.v2p-who-blurb {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── V2 STEP SECTION ──
   Matches the dark "How it works" treatment used on the homepage.
   Scoped to this stylesheet so V1's light process section is unaffected. */
.process-section {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.process-section .eyebrow { color: var(--blue-sky); }
.process-section .eyebrow::before { background: var(--blue-sky); }
.process-section h2.section-title { color: white; }
.process-section h2.section-title .t-blue { color: var(--blue-sky); }
.process-section > .eyebrow,
.process-section > h2.section-title {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.process-grid {
  gap: 2px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
}
.proc-card { background: var(--navy-mid); border: none; }
.proc-num {
  font-size: 28px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.proc-title { color: white; }
.proc-body { color: rgba(255,255,255,0.65); }

@media (max-width: 960px) {
  .v2p-overview { grid-template-columns: 1fr; padding: 56px 24px; gap: 40px; }
  .v2p-overview-photo { height: 280px; order: -1; }
  .v2p-who { padding: 56px 24px; }
  .v2p-who-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .v2p-who-grid { grid-template-columns: 1fr; }
}

/* ── FOOTER ── */
.footer-main,
.footer-bottom {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* ── CTA BANNER ──
   No HTML change needed (this partial is shared with V1): growing the
   side padding on wide screens (floored at the original 56px) centers
   the same flex row within an effective 1280px column. */
.cta-banner {
  padding-left: max(56px, calc((100% - 1280px) / 2));
  padding-right: max(56px, calc((100% - 1280px) / 2));
}
