/* ═══════════════════════════════════════════════════════════════
   FNCE 2026 EVENT PAGE (fnce.html, <body class="pro-theme event-page">)
   Post-event thank-you: booth photo slideshow in the hero, RD beta form,
   then the Pro Portal demos for anyone who missed the booth. Phone-first:
   base rules are the phone layout; min-width queries add the desktop
   composition. Layers on styles.css + the .pro-theme palette so it reads
   as For Professionals. Scoped to .event-page so it can be deleted
   wholesale later.
   ═══════════════════════════════════════════════════════════════ */

.event-page {
  --event-lime-soft: rgba(177, 211, 84, 0.12);
  --event-lime-line: rgba(177, 211, 84, 0.38);
  --event-gutter: 1.25rem;
  background: var(--pro-page);
}

/* Shared kicker label */
.event-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pro-lime);
  margin-bottom: 0.6rem;
}

/* ─── Hero ─────────────────────────────────────────── */
.event-hero {
  position: relative;
  overflow: hidden;
  padding: calc(6rem + env(safe-area-inset-top, 0px)) var(--event-gutter) 3rem;
  background:
    radial-gradient(90% 55% at 100% 0%, rgba(177, 211, 84, 0.16) 0%, transparent 70%),
    radial-gradient(60% 40% at 0% 100%, rgba(247, 143, 43, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, #111 0%, var(--pro-page) 100%);
}

/* Fine dot grid, fading toward the bottom: a quiet "expo floor" texture */
.event-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
  pointer-events: none;
}

/* Phone order: copy → photos → reasons */
.event-hero-grid {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "copy"
    "visual"
    "props";
  gap: 2.25rem;
}

.event-hero-copy { grid-area: copy; }
.event-hero-visual { grid-area: visual; position: relative; }
.event-props { grid-area: props; }

.event-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.75rem;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--event-lime-line);
  background: var(--event-lime-soft);
  color: var(--pro-lime);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-chip-sep { opacity: 0.55; }

.event-chip-check { width: 12px; height: 12px; flex: none; }

.event-chip-dot {
  position: relative;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--pro-lime);
}

.event-chip-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--pro-lime);
  animation: event-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes event-ping {
  0% { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

.event-hero h1 {
  font-size: clamp(2.3rem, 10.5vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--pro-text);
  margin-bottom: 0.9rem;
}

.event-hero h1 span {
  display: block;
  color: var(--pro-lime);
}

.event-hero-lede {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--pro-text-body);
  max-width: 34rem;
  margin-bottom: 1.4rem;
}

/* Main CTA: full-width on phones */
.event-page .event-cta-main {
  display: flex;
  width: 100%;
  max-width: 30rem;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 14px;
}

.event-cta-main svg { width: 18px; height: 18px; }

.event-cta-note {
  max-width: 30rem;
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--pro-text-muted);
}

/* ─── Booth photo slideshow (hero visual) ───────────
   Mixed portrait/landscape shots share one 4:3 frame: the photo sits
   object-fit: contain over a blurred copy of itself, so portraits fill
   the frame without cropping anyone out. */
.photo-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--pro-border);
  box-shadow: 0 18px 28px -14px rgba(0, 0, 0, 0.7);
  /* keeps the blurred layer's rounded corners in Safari */
  -webkit-mask-image: -webkit-radial-gradient(#fff, #000);
}

.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.photo-frame .photo-bg {
  object-fit: cover;
  transform: scale(1.18);
  filter: blur(26px) saturate(1.25) brightness(0.55);
}

.photo-frame .photo-main {
  object-fit: contain;
}

.photo-carousel .demo-caption { min-height: 1.6rem; }

/* Three reasons */
.event-props {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.event-props li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(38, 38, 38, 0.7);
  border: 1px solid var(--pro-border);
}

.event-prop-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--event-lime-soft);
  color: var(--pro-lime);
}

.event-prop-icon svg { width: 20px; height: 20px; }

.event-props h2 {
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.event-props p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--pro-text-body);
}

/* ─── Pro Portal demo carousel ─────────────────────
   Native horizontal scroll-snap: swipe on touch, arrows/dots anywhere. */
.event-hero-visual { scroll-margin-top: 90px; }

.event-hero-visual::before {
  content: '';
  position: absolute;
  inset: 6% -4% 18% 4%;
  background: radial-gradient(closest-side, rgba(177, 211, 84, 0.16), transparent);
  filter: blur(28px);
  pointer-events: none;
}

.demo-carousel { position: relative; }

.demo-track {
  list-style: none;
  display: flex;
  /* A gap wider than the frame shadow's horizontal reach, and no side
     padding: neighbouring demos sit fully outside the visible box. */
  gap: 48px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.demo-track::-webkit-scrollbar { display: none; }

.demo-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.event-page .demo-frame {
  position: relative;
  border-radius: 14px;
  /* Edge ring drawn inside the box (a 0-blur outer ring would be clipped
     at the track's sides); the drop shadow is pulled in with negative
     spread so it never reaches sideways into the next slide's space. */
  border: 1px solid var(--pro-border);
  box-shadow: 0 18px 28px -14px rgba(0, 0, 0, 0.7);
}

.demo-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-top: 0.9rem;
  text-align: center;
  min-height: 2.9rem;
}

.demo-caption-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pro-text);
}

.demo-caption-text {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--pro-text-muted);
}

.demo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.85rem;
}

.demo-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--pro-border);
  background: var(--pro-card);
  color: var(--pro-text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, opacity 0.2s, background 0.2s;
}

.demo-arrow svg { width: 20px; height: 20px; }

.demo-arrow:hover:not(:disabled) {
  border-color: var(--pro-lime);
  color: var(--pro-lime);
}

.demo-next:not(:disabled) {
  background: var(--pro-lime);
  border-color: var(--pro-lime);
  color: var(--pro-ink);
}

.demo-next:hover:not(:disabled) { background: var(--pro-lime-hover); color: var(--pro-ink); }

.demo-arrow:disabled { opacity: 0.35; cursor: default; }

.demo-dots {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* 24px hit area around an 8px dot */
.demo-dot {
  position: relative;
  width: 22px;
  height: 24px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}

.demo-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 999px;
  background: var(--pro-border);
  transition: width 0.25s, margin 0.25s, background 0.25s;
}

.demo-dot.is-active::after {
  width: 20px;
  margin-left: -10px;
  background: var(--pro-lime);
}

/* ─── Go deeper (links to For Professionals + How It Works) ─── */
.event-explore {
  padding: 3rem var(--event-gutter);
  background: var(--pro-page);
  border-top: 1px solid var(--pro-border);
}

.event-explore-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.explore-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 4.25rem 1.25rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--pro-border);
  background: var(--pro-card);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.explore-card:hover {
  border-color: var(--event-lime-line);
  background: var(--pro-subtle);
  transform: translateY(-2px);
}

.explore-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pro-lime);
}

.explore-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--pro-text);
}

.explore-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--pro-text-body);
}

.explore-go {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  background: var(--event-lime-soft);
  color: var(--pro-lime);
  transition: background 0.2s, color 0.2s;
}

.explore-go svg { width: 18px; height: 18px; }

.explore-card:hover .explore-go {
  background: var(--pro-lime);
  color: var(--pro-ink);
}

/* ─── Join (form) ──────────────────────────────────── */
.event-join {
  padding: 3.5rem var(--event-gutter);
  background:
    radial-gradient(80% 50% at 0% 0%, rgba(177, 211, 84, 0.12), transparent 70%),
    var(--pro-page-alt);
  border-top: 1px solid var(--pro-border);
}

.event-join-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.event-join-head h2 {
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.event-join-head p {
  color: var(--pro-text-body);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 28rem;
}

.event-form {
  padding: 1.35rem;
  border-radius: 20px;
  background: var(--pro-card);
  border: 1px solid var(--pro-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.event-form .form-group { margin-bottom: 1rem; }

/* 16px inputs: stops iOS Safari zooming the page on focus */
.event-form .form-group input {
  font-size: 1rem;
  padding: 0.8rem 1rem;
}

.event-form .form-checkbox { margin: 0.25rem 0 1.25rem; align-items: center; }
.event-form .form-checkbox input { margin-top: 0; width: 20px; height: 20px; accent-color: var(--pro-lime); }
.event-form .form-checkbox label { font-size: 0.82rem; }

.event-form .form-submit {
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 14px;
}

/* Affiliate program disclaimer under the sign-up form (base styles in styles.css) */
.event-form .affiliate-note { text-align: center; }

/* ─── Missed the booth: Pro Portal demos ───────────── */
.event-demos {
  padding: 3.5rem var(--event-gutter) 3rem;
  background: var(--pro-page);
  border-top: 1px solid var(--pro-border);
  scroll-margin-top: 70px;
}

.event-demos-inner {
  max-width: 880px;
  margin: 0 auto;
}

.event-demos-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.event-demos-head h2 {
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.event-demos-head p {
  color: var(--pro-text-body);
  font-size: 1rem;
  line-height: 1.55;
}

/* Footer: standard site footer; leave room for the sticky CTA on phones */
@media (max-width: 1024px) {
  .event-page .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
}

/* ─── Sticky phone CTA ─────────────────────────────── */
.event-sticky-cta {
  position: fixed;
  left: var(--event-gutter);
  right: var(--event-gutter);
  bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  background: var(--pro-lime);
  color: var(--pro-ink);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(140%);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.event-sticky-cta:hover { color: var(--pro-ink); }
.event-sticky-cta svg { width: 18px; height: 18px; }

.event-sticky-cta.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ─── Small phones: keep the hero inside one screen ─── */
@media (max-width: 360px) {
  .event-page { --event-gutter: 1rem; }
  .event-hero-lede { font-size: 0.95rem; }
}

/* ─── Tablet and up ────────────────────────────────── */
@media (min-width: 640px) {
  .event-page { --event-gutter: 2rem; }
  /* The header grows to ~106px here; keep the chip clear of it */
  .event-hero { padding-top: calc(8rem + env(safe-area-inset-top, 0px)); }
  .event-props { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .event-props li { flex-direction: column; }
  .event-explore-inner { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .explore-card { padding: 1.6rem 4.5rem 1.6rem 1.6rem; }
  .event-form { padding: 2rem; }
  .event-sticky-cta { left: 50%; right: auto; width: 360px; margin-left: -180px; }
}

/* ─── Desktop ──────────────────────────────────────── */
@media (min-width: 1025px) {
  .event-hero { padding: 9.5rem var(--event-gutter) 4.5rem; }

  .event-hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-areas:
      "copy visual"
      "props props";
    column-gap: 4rem;
    row-gap: 4rem;
    align-items: center;
  }

  .event-hero h1 { font-size: clamp(3.2rem, 4.6vw, 4.3rem); }
  .event-hero-lede { font-size: 1.15rem; margin-bottom: 1.75rem; }

  .event-page .event-cta-main { display: inline-flex; width: auto; padding: 1rem 2rem; }
  .event-cta-note { text-align: left; }

  .event-join { padding: 5.5rem var(--event-gutter); }
  .event-join-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
  }

  .event-demos { padding: 5.5rem var(--event-gutter) 5rem; }
  .event-demos-head { margin-bottom: 2.5rem; }

  /* Desktop visitors have the hero CTA and header button; no sticky bar */
  .event-sticky-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .event-chip-dot::after { animation: none; }
  .event-sticky-cta { transition: none; }
}
