/* ====================================================
   Pulse Landing — Stripe.com–inspired design system
   ==================================================== */

:root {
  --bg-main:       #ffffff;
  --bg-soft:       #f6f9fc;
  --text-primary:  #0a2540;
  --text-muted:    #425466;
  --accent:        #635bff;
  --accent-hover:  #5851e6;
  --navy:          #0a2540;
  --teal:          #00d4aa;
  --font-heading:  'Inter', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --header-height: var(--pom-header-height, 72px);
  --container:     1080px;
  --section-gap:   1.5rem;
  --border:        1px solid rgba(66, 84, 102, 0.12);
  --shadow:        0 13px 27px rgba(50,50,93,.09), 0 8px 16px rgba(0,0,0,.05);
  --shadow-sm:     0 2px 8px rgba(50,50,93,.06), 0 1px 3px rgba(0,0,0,.04);

  /* CSS fallback gradient — shown if WebGL unavailable or reduced-motion */
  --stripe-mesh:
    radial-gradient(at 27% 37%, rgba(239,  0,143,.20) 0, transparent 55%),
    radial-gradient(at 90% 15%, rgba(110,195,244,.18) 0, transparent 55%),
    radial-gradient(at 52% 95%, rgba(112, 56,255,.16) 0, transparent 55%),
    radial-gradient(at  8% 60%, rgba(239,  0,143,.14) 0, transparent 55%),
    radial-gradient(at 95% 90%, rgba(255,186, 39,.14) 0, transparent 55%),
    radial-gradient(at 38% 52%, rgba(110,195,244,.12) 0, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f0eeff 60%, #ffffff 100%);
}

/* ── Reset ──────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body.page-home {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-top: 0;
}

body.page-home main { background: transparent; }

/* ── Typography ─────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  margin-bottom: 1.25rem;
}

h1 em {
  font-style: normal;
  font-weight: 700;
  color: var(--text-primary);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  letter-spacing: -0.02em;
}

p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hover); opacity: 1; }

/* ── Layout helpers ─────────────────────────────────── */

.pom-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Hero — Stripe.com wave + layout ───────────────── */

@media (min-width: 1080px) {
  :root {
    --section-gap: calc((100vw - var(--container) + 3rem) / 2);
  }
}

.pom-hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-height) + 3rem) 0 10rem;
  overflow: hidden;
  background: #fff;
  text-align: left;
}

.pom-hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.pom-hero-background-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#gradient-canvas {
  position: absolute;
  left: -5%;
  top: -18%;
  width: 110%;
  height: 130%;
  display: block;
  --gradient-color-1: #ef008f;
  --gradient-color-2: #6ec3f4;
  --gradient-color-3: #7038ff;
  --gradient-color-4: #ffba27;
}

/* Light left wash — gradient stays visible over copy on the right like Stripe */
.pom-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    #fff 0%,
    #fff 32%,
    rgba(255, 255, 255, 0.88) 44%,
    rgba(255, 255, 255, 0.35) 58%,
    transparent 72%
  );
}

.pom-hero-background--fallback .pom-hero-background-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--stripe-mesh);
}

@media (prefers-reduced-motion: reduce) {
  .pom-hero-background-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--stripe-mesh);
  }
}

.pom-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.pom-hero-content {
  max-width: 620px;
  margin: 0;
  padding-top: 3.5rem;
}

.pom-hero-content h1 {
  color: var(--text-primary);
  font-weight: 600;
  font-size: clamp(2.25rem, 3.8vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.pom-hero-content > p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 1.75rem;
  line-height: 1.65;
}

.pom-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-start;
}

/* Primary — Stripe blurple pill */
.pom-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6875rem 1.375rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(99, 91, 255, 0.35);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}

.pom-hero-cta:hover {
  color: #fff;
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 91, 255, 0.4);
}

/* Secondary — white outline pill */
.pom-hero-cta--secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid rgba(10, 37, 64, 0.18);
  box-shadow: 0 1px 2px rgba(50, 50, 93, 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.pom-hero-cta--secondary:hover {
  color: var(--navy);
  background: #fff;
  border-color: rgba(10, 37, 64, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(50, 50, 93, 0.08);
}

/* Stay updated card — inside hero */
.pom-hero-signup {
  margin-top: 2.5rem;
  text-align: left;
  max-width: 540px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pom-hero-signup .signup-inner {
  margin: 0;
  max-width: none;
}

.pom-hero-signup .formkit-fields {
  justify-content: flex-start !important;
}

/* ── Feature / products grid ─────────────────────────── */

.pom-products {
  position: relative;
  z-index: 3;
  background: var(--bg-soft);
}

.pom-products > .pom-container {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.pom-section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}

.pom-section-header p { margin-bottom: 0; }

.pom-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pom-product-card {
  background: var(--bg-main);
  padding: 2rem 1.75rem;
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Stripe-style colored top accent bar, revealed on hover */
.pom-product-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  opacity: 0;
  transition: opacity .2s ease;
}

.pom-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pom-product-card:hover::before { opacity: 1; }

.pom-product-card h3 { color: var(--text-primary); }

.pom-product-card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
  flex-grow: 1;
  line-height: 1.65;
}

/* ── Footer ──────────────────────────────────────────── */

body.page-home .pom-footer {
  background: var(--bg-soft);
  border-top: var(--border);
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 1024px) {
  .pom-products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .pom-hero {
    min-height: auto;
    padding: calc(var(--header-height) + 2rem) 0 9rem;
  }

  .pom-hero::after {
    background: linear-gradient(
      180deg,
      #fff 0%,
      rgba(255, 255, 255, 0.96) 45%,
      rgba(255, 255, 255, 0.7) 65%,
      transparent 100%
    );
  }

  .pom-hero-background-wrap {
    inset: 0;
  }

  #gradient-canvas {
    left: -10%;
    width: 120%;
    top: -12%;
    height: 125%;
  }

  .pom-products > .pom-container {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  h1   { font-size: 2.25rem; }
  .pom-hero-content {
    padding-top: 2rem;
  }

  .pom-hero-content > p { font-size: 1.0625rem; }

  .pom-products-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .pom-hero { padding: 3.5rem 0 9rem; }
  .pom-hero-actions { flex-direction: column; align-items: stretch; }
  .pom-hero-cta { text-align: center; }
}

/* Honour reduced-motion: hide animated canvas, show CSS fallback gradient */
@media (prefers-reduced-motion: reduce) {
  .pom-hero-background { display: none; }
  .pom-hero {
    background: var(--stripe-mesh);
  }
  .pom-hero-cta:hover,
  .pom-product-card:hover { transform: none; }
}
