/* ============================================================
   VISTA Platform — Page Styles
   ============================================================ */

/* ── Page Hero (reuses framework page-hero shell) ── */
.page-hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,28,46,0.94) 0%, rgba(17,28,46,0.65) 55%, rgba(17,28,46,0.4) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  animation: heroFadeUp 0.9s ease both;
}
.page-hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.page-hero-title em {
  font-style: normal;
  color: var(--accent-green);
}
.page-hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  font-weight: 300;
  max-width: 620px;
  line-height: 1.6;
}
.platform-hero .hero-eyebrow {
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* ── Included-with banner ── */
.included-banner {
  background: linear-gradient(180deg, var(--white) 0%, #F7F9FC 100%);
  padding: 5rem 0 4rem;
  text-align: center;
}
.included-inner {
  max-width: 760px;
  margin: 0 auto;
}
.included-badge {
  display: inline-block;
  background: var(--accent-green);
  color: var(--dark-navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.included-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-navy);
  margin-bottom: 1.25rem;
}
.included-title span { color: var(--royal-blue); }
.included-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Four Pillars Section ── */
.platform-pillars {
  padding: 6rem 0;
  background: var(--white);
}
.platform-pillars-intro {
  max-width: 720px;
  margin: 0 auto 4rem;
  text-align: center;
}
.pillar-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.platform-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  padding: 2.25rem;
  transition: all 0.3s;
}
.platform-card:hover {
  border-color: var(--royal-blue);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(34,62,145,0.08);
}
.platform-card-icon {
  width: 56px; height: 56px;
  border-radius: 10px;
  background: rgba(34,62,145,0.08);
  color: var(--royal-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.platform-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.platform-card p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
}
.platform-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}
.platform-card-list li {
  font-size: 0.88rem;
  color: var(--text-mid);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}
.platform-card-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  background: var(--royal-blue);
  border-radius: 50%;
}
.platform-card-feature {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #1a2845 100%);
  border-color: var(--dark-navy);
  color: var(--white);
}
.platform-card-feature:hover {
  border-color: var(--accent-green);
  box-shadow: 0 14px 40px rgba(17,28,46,0.25);
}
.platform-card-feature h3 { color: var(--white); }
.platform-card-feature p { color: rgba(255,255,255,0.78); }
.platform-card-feature .platform-card-list li { color: rgba(255,255,255,0.78); }
.platform-card-feature .platform-card-list li::before { background: var(--accent-green); }
.platform-card-feature .platform-card-icon {
  background: rgba(163,230,75,0.15);
  color: var(--accent-green);
}
.platform-card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--accent-green);
  color: var(--dark-navy);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* ── Service Recurrence Feature ── */
.recurrence-feature {
  padding: 7rem 0;
  background: var(--dark-navy);
  color: var(--white);
}
.recurrence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.recurrence-text .section-label { color: var(--accent-green); }
.section-title.light { color: var(--white); }
.section-title.light span { color: var(--accent-green); }
.recurrence-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.78);
  margin-bottom: 1rem;
}
.recurrence-checklist {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}
.recurrence-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.98rem;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.recurrence-checklist .check {
  color: var(--accent-green);
  font-weight: 700;
  flex-shrink: 0;
}

/* Mock email card */
.mock-email {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  color: var(--dark-navy);
}
.mock-email-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.mock-email-from {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mock-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--royal-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.mock-from-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-navy);
}
.mock-from-addr {
  font-size: 0.78rem;
  color: var(--text-mid);
}
.mock-email-time {
  font-size: 0.78rem;
  color: var(--text-mid);
}
.mock-email-subject {
  padding: 1rem 1.25rem 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-navy);
}
.mock-email-body {
  padding: 0.5rem 1.25rem 1.5rem;
}
.mock-email-body p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 0.85rem;
}
.mock-email-cta {
  display: inline-block;
  background: var(--royal-blue);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 4px;
  margin: 0.5rem 0 1rem;
}
.mock-email-sig {
  color: var(--text-mid);
  font-style: italic;
  font-size: 0.88rem;
}
.mock-caption {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
}

/* ── Closed-Loop Attribution ── */
.attribution-section {
  padding: 7rem 0;
  background: var(--white);
}
.attribution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.dash-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 12px 40px rgba(34,62,145,0.08);
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--light-gray);
  margin-bottom: 0.75rem;
}
.dash-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-navy);
}
.dash-period {
  font-size: 0.75rem;
  color: var(--text-mid);
  background: #F4F6FA;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid #F4F6FA;
}
.dash-row:last-of-type { border-bottom: none; }
.dash-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-navy);
}
.dash-stats {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.dash-stats > div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.dash-stats strong {
  font-size: 1rem;
  color: var(--dark-navy);
  font-weight: 700;
}
.dash-stats span {
  font-size: 0.7rem;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dash-revenue strong { color: var(--royal-blue); }
.dash-footer {
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 2px solid var(--dark-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dash-footer-total {
  font-size: 1.4rem;
  color: var(--royal-blue);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ── Branded Section ── */
.branded-section {
  padding: 7rem 0;
  background: #F7F9FC;
}
.branded-intro {
  max-width: 720px;
  margin: 0 auto 4rem;
  text-align: center;
}
.branded-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.branded-item {
  background: var(--white);
  border-radius: 10px;
  padding: 1.75rem;
  border: 1px solid var(--light-gray);
  transition: all 0.3s;
}
.branded-item:hover {
  border-color: var(--royal-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(34,62,145,0.06);
}
.branded-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--royal-blue);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.branded-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 0.5rem;
}
.branded-item p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-mid);
}
.branded-item code {
  background: rgba(34,62,145,0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.82rem;
  color: var(--royal-blue);
  font-family: 'Roboto Mono', monospace;
}

/* ── Replace Section (one tool, not six) ── */
.replace-section {
  padding: 7rem 0;
  background: var(--dark-navy);
  color: var(--white);
}
.replace-intro {
  text-align: center;
  margin-bottom: 4rem;
}
.replace-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.replace-col-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
  text-align: center;
}
.replace-col-label.after {
  color: var(--accent-green);
}
.replace-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.replace-tool {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  text-align: center;
}
.replace-plus {
  text-align: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.3);
  font-weight: 700;
  padding: 0.4rem 0;
}
.replace-arrow {
  font-size: 2.5rem;
  color: var(--accent-green);
  font-weight: 300;
  text-align: center;
}
.replace-after {
  background: linear-gradient(135deg, var(--royal-blue) 0%, #1a3078 100%);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  border: 2px solid var(--accent-green);
  box-shadow: 0 10px 40px rgba(34,62,145,0.4);
}
.replace-logo {
  width: 100px;
  margin: 0 auto 1.25rem;
  opacity: 0.95;
}
.replace-after-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.replace-after-tagline {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
}

/* ── Pricing Section ── */
.pricing-section {
  padding: 7rem 0;
  background: var(--white);
}
.pricing-intro {
  text-align: center;
  margin-bottom: 4rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  padding: 2.25rem;
  transition: all 0.3s;
}
.pricing-card:hover {
  border-color: var(--royal-blue);
  transform: translateY(-3px);
}
.pricing-card-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--royal-blue);
  margin-bottom: 1rem;
}
.pricing-card h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.pricing-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-mid);
}
.pricing-card-highlight {
  background: linear-gradient(135deg, var(--royal-blue) 0%, #1a3078 100%);
  border-color: var(--royal-blue);
  color: var(--white);
}
.pricing-card-highlight h4 { color: var(--white); }
.pricing-card-highlight p { color: rgba(255,255,255,0.85); }
.pricing-card-highlight .pricing-card-eyebrow { color: var(--accent-green); }

/* ── CTA Section (matches process page pattern) ── */
.cta-section {
  background: linear-gradient(135deg, var(--royal-blue) 0%, #1a3078 100%);
  padding: 6rem 0;
  text-align: center;
  color: var(--white);
}
.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.cta-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Animations ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease forwards;
}
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .pillar-card-grid { grid-template-columns: 1fr; }
  .recurrence-grid,
  .attribution-grid { grid-template-columns: 1fr; gap: 3rem; }
  .branded-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .replace-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .replace-arrow { transform: rotate(90deg); }
}
@media (max-width: 560px) {
  .branded-grid { grid-template-columns: 1fr; }
  .platform-card,
  .pricing-card { padding: 1.75rem; }
  .recurrence-feature,
  .attribution-section,
  .branded-section,
  .replace-section,
  .pricing-section,
  .platform-pillars { padding: 4rem 0; }
}
