/* ===========================
   PLATFORM LANDING PAGE STYLES
   Shared across Praxis, Portica, Palatium, TRINITI
   Uses --platform-accent and --platform-accent-shadow set per site
   =========================== */

/* Dark page base — matches baseline-test aesthetic */
.hh-page--dark {
  background: var(--hh-bg-dark);
  color: var(--hh-text-light);
}

.hh-page--dark .hh-label {
  color: var(--platform-accent);
}

.hh-page--dark p {
  color: var(--hh-text-body);
}

.hh-page--dark .hh-intro-text {
  color: var(--hh-text-muted-light);
}

/* Hero fix: platform ::after watermarks in flex hero squeeze the inner container.
   Explicit width: 100% forces flex item to fill before max-width caps it. */
.hh-hero-section .hh-section__inner {
  width: 100%;
}

/* Legacy platform hero (unused, retained for reference) */
.platform-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.platform-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%,
    color-mix(in srgb, var(--platform-accent) 12%, transparent), transparent);
  pointer-events: none;
}

.platform-hero__inner {
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.platform-hero__logo {
  width: 64px;
  height: 64px;
  margin-bottom: 2rem;
  opacity: 0.85;
}

.platform-hero__element {
  font-family: serif;
  font-size: 1.1rem;
  color: var(--platform-accent);
  opacity: 0.7;
  display: block;
  margin-bottom: 0.5rem;
}

.platform-hero__label {
  font-family: var(--hh-font-sans);
  font-size: var(--hh-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--platform-accent);
  margin-bottom: 1rem;
  display: block;
}

.platform-hero__title {
  font-family: var(--hh-font-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  color: var(--hh-text-light);
  line-height: 1.15;
  margin: 0 0 1.5rem;
}

.platform-hero__subtitle {
  font-family: var(--hh-font-sans);
  font-size: var(--hh-fs-lg);
  color: var(--hh-text-muted-light);
  line-height: 1.65;
  margin: 0 0 2.5rem;
}

/* Platform-accented buttons */
.platform-hero .hh-btn-primary,
.platform-cta .hh-btn-primary {
  background: var(--platform-accent);
}

.platform-hero .hh-btn-primary:hover,
.platform-cta .hh-btn-primary:hover {
  background: var(--platform-accent-shadow);
}

/* Feature strip (thin border-top cards) */
.platform-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.platform-feature {
  border-top: 2px solid var(--platform-accent-shadow);
  padding-top: 1.25rem;
}

.platform-feature h3 {
  font-family: var(--hh-font-sans);
  font-size: var(--hh-fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--hh-text-light);
  margin: 0 0 0.5rem;
}

.platform-feature p {
  font-size: var(--hh-fs-sm);
  color: var(--hh-text-muted-light);
  line-height: 1.65;
  margin: 0;
}

/* Timeline badge */
.platform-timeline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--platform-accent-shadow);
  font-family: var(--hh-font-sans);
  font-size: var(--hh-fs-sm);
  color: var(--hh-text-muted-light);
  margin-top: 2rem;
}

.platform-timeline__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--platform-accent);
}

/* CTA section */
.platform-cta {
  text-align: center;
  padding: 5rem 2rem;
}

.platform-cta h2 {
  font-family: var(--hh-font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--hh-text-light);
  margin: 0 0 1rem;
}

.platform-cta p {
  font-family: var(--hh-font-sans);
  color: var(--hh-text-muted-light);
  margin: 0 0 2rem;
  font-size: var(--hh-fs-base);
}

/* Responsive */
@media (max-width: 768px) {
  .platform-hero {
    min-height: 60vh;
    padding: 4rem 1.5rem 3rem;
  }
  .platform-features {
    grid-template-columns: 1fr;
  }
}
