/**
 * Wipper unified site chrome — inner pages, hubs, SEO landings
 * Pair with styles.css + DM Sans / Fraunces (index adds editorial hero separately)
 */

body.wipper-site {
  background: var(--bg);
}

/* Typography consistency */
body.wipper-site h1,
body.wipper-site h2,
body.wipper-site .price-header h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

body.wipper-site h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
}

/* Site header — one system every page */
body.wipper-site .site-header {
  background: rgba(250, 248, 245, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}

body.wipper-site .site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

body.wipper-site .main-nav a {
  color: var(--ink-secondary);
  font-weight: 500;
  font-family: var(--font);
}

body.wipper-site .main-nav a:hover {
  color: var(--ink);
}

body.wipper-site .mobile-menu-btn span {
  background: var(--ink);
}

body.wipper-site .logo-mark {
  width: auto;
  height: 32px;
  max-width: 130px;
}

/* Inner page hero — replaces inline styles */
.page-hero {
  padding: 120px 0 64px;
  min-height: auto;
  background: var(--bg);
}

.page-hero .hero-inner {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.page-hero .hero-text {
  max-width: none;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.page-hero .hero-sub {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.page-hero .actions {
  margin-top: 28px;
}

/* Hub & product cards */
.hub-card-grid,
.cross-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.hub-card,
.cross-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.hub-card:hover,
.cross-link:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  color: inherit;
}

.hub-card strong,
.cross-link {
  font-size: 17px;
  font-weight: 700;
}

.hub-card span,
.cross-link-desc {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.hub-card-featured {
  border-color: rgba(94, 184, 176, 0.45);
  background: linear-gradient(145deg, var(--surface) 0%, rgba(94, 184, 176, 0.08) 100%);
}
.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--ink); }

.hub-card .hub-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
}

/* Proof items as proper cards */
.proof-logos {
  gap: 16px;
}

.proof-item {
  min-height: 100px;
}

.proof-item a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
}

.proof-item a:hover strong {
  color: var(--accent);
}

/* Section rhythm */
body.wipper-site .social-proof,
body.wipper-site .process,
body.wipper-site .examples,
body.wipper-site .comparison,
body.wipper-site .pricing,
body.wipper-site .faq,
body.wipper-site .request-section {
  padding: 72px 0;
}

body.wipper-site .section-inner > h2 {
  margin-bottom: 16px;
}

body.wipper-site .section-inner > .section-eyebrow + h2 {
  margin-bottom: 24px;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 72px 24px;
  background: var(--surface-warm);
  border-top: 1px solid var(--border-light);
}

.cta-band h2 {
  margin-bottom: 16px;
}

.cta-band .button.primary {
  font-size: 17px;
  padding: 14px 32px;
}

/* Unified footer grid */
.site-footer .footer-inner {
  display: grid;
  gap: 32px;
}

.site-footer .footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px 32px;
  width: 100%;
}

.site-footer .footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer .footer-col strong {
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.site-footer .footer-col a {
  color: var(--ink-tertiary);
  font-size: 13px;
}

/* Index: hub products on homepage */
.hub-products {
  padding: 72px 0;
}

.hub-products .section-inner > p {
  max-width: 640px;
  color: var(--ink-secondary);
  margin-bottom: 32px;
  line-height: 1.65;
}

/* Preview mockup vertical label */
.ip-vertical-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ip-brand, var(--accent));
  margin-top: 2px;
}

/* Global section headings on index */
.examples h2,
.process h2,
.comparison h2,
.pricing h2,
.faq h2,
.preview-result .result-header h2,
.hub-products h2 {
  font-family: var(--font-display);
}

@media (max-width: 768px) {
  .page-hero {
    padding-top: 100px;
  }
}
