/* Shared styles for /pages/foundation, /signature, /immersive */

.tier-hero {
  position: relative;
  padding: clamp(7rem, 12vw, 9rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 4rem);
  text-align: center;
}

/* Flux supplies its own video background; Current/Surge get a soft tonal
   glow instead of flat black, so the primary CTA's glass has something to
   refract. */
.tier-hero:not(.flux-hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 50% at 30% 20%, rgba(209, 228, 250, 0.16), transparent 60%),
    radial-gradient(50% 45% at 75% 60%, rgba(63, 73, 89, 0.12), transparent 60%);
  pointer-events: none;
}

.tier-hero .eyebrow { justify-content: center; }
.tier-hero .eyebrow::before { display: none; }

.tier-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  max-width: 18ch;
  margin: 0 auto;
  line-height: 1.05;
}

.tier-hero .tier-promise {
  margin: 1.5rem auto 0;
  color: var(--bone-dim);
  font-size: 1.15rem;
  max-width: 52ch;
}

.tier-hero .spec-line { margin: 2.5rem auto; }

.tier-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* Live demo preview — click opens the full demo in a new tab */
.demo-embed-wrap {
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(4rem, 8vw, 6rem);
}

.demo-embed-frame {
  display: block;
  max-width: 1100px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  background: var(--ink-soft);
  box-shadow: var(--shadow-card), var(--shadow-xl);
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--ease-physical), box-shadow 0.4s;
}

.demo-embed-frame:hover,
.demo-embed-frame:focus-visible {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1.5px var(--ember), 0 50px 110px -40px rgba(209,228,250,0.4);
}

.demo-embed-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--ink-softer);
}
.demo-embed-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink-softer);
}
.demo-embed-bar .url-chip {
  margin-left: 0.75rem;
  font-size: 0.78rem;
  color: var(--bone-dim);
  background: var(--ink);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
}

.demo-embed-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink);
}

.demo-embed-preview iframe {
  position: absolute;
  top: 0; left: 0;
  width: 250%;
  height: 250%;
  transform: scale(0.4);
  transform-origin: top left;
  border: 0;
  pointer-events: none;
}

.demo-embed-cta {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--ember);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 14px 34px -10px rgba(0,0,0,0.5);
  transition: background 0.3s, transform 0.3s var(--ease-physical);
}

.demo-embed-frame:hover .demo-embed-cta,
.demo-embed-frame:focus-visible .demo-embed-cta {
  background: var(--ember-bright);
  transform: translateX(-50%) translateY(-2px);
}

/* Included list */
.included-section { padding-top: 0; }

.included-section .intro-split { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Tier accent colors */
.accent-foundation .tier-hero .eyebrow,
.accent-foundation .tier-hero .spec-value { color: var(--steel-bright); }

.accent-signature .tier-hero .eyebrow,
.accent-signature .tier-hero .spec-value { color: var(--pine-bright); }

.accent-immersive .tier-hero .eyebrow,
.accent-immersive .tier-hero .spec-value { color: var(--ember-bright); }

/* ---------- Flux hero: full-bleed video, vignette, reveal ---------- */
.flux-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(5rem, 10vw, 7rem);
  overflow: hidden;
}

.flux-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1600&q=60") center / cover;
}

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

.flux-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flux-hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 50% 30%, rgba(209,228,250,0.22), transparent 65%),
    linear-gradient(180deg, rgba(5,6,15,0.75), rgba(5,6,15,0.8) 90%, var(--ink) 100%),
    var(--ink);
}

.flux-hero-content {
  position: relative;
  z-index: 1;
}

/* This hero is a fixed-composition video background with a bottom vignette —
   the box already carries the merged spec-line rows, so it's taller than the
   other two tiers' price-hero. Keep its own clearance tighter than the base
   value so the CTA doesn't get pushed down into the vignette's dark zone. */
.flux-hero-content .price-hero {
  margin: clamp(2.75rem, 4vw, 3.5rem) auto;
}

.flux-reveal {
  animation: flux-rise 0.9s var(--ease-out-soft) both;
}
.flux-hero-content h1.flux-reveal { animation-delay: 0.05s; }
.flux-hero-content p.flux-reveal { animation-delay: 0.2s; }
.flux-hero-content .tier-meta.flux-reveal { animation-delay: 0.32s; }
.flux-hero-content .tier-hero-actions.flux-reveal { animation-delay: 0.44s; }

@keyframes flux-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .flux-reveal { animation: none; }
}

@media (max-width: 640px) {
  .flux-hero { min-height: 80vh; }
}

/* Comparison nudge + final CTA (reused) */
.tier-nudge {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 1.25rem;
}
.tier-nudge a { color: var(--ember-bright); text-decoration: none; border-bottom: 1px solid var(--ember); }
.tier-nudge a:hover { color: var(--ember); }

@media (max-width: 720px) {
  .included-grid { grid-template-columns: 1fr; }
  .demo-embed-frame iframe { height: 70vh; }
}
