/* ════════════════════════════════════════════════════════════════════
   EstateBuilder Landing — Animation Layer (2026-05-27)
   ────────────────────────────────────────────────────────────────────
   Loaded AFTER styles.css so these rules win specificity ties.
   ──────────────────────────────────────────────────────────────── */

/* ── 1. Ambient hero glow drift ──────────────────────────────── */
@keyframes fis-ambient-drift {
  0%   { background-position:   0%   0%,   100% 0%,   50% 100%; }
  50%  { background-position:  20%   0%,    80% 5%,   55% 100%; }
  100% { background-position:   0%   0%,   100% 0%,   50% 100%; }
}
body {
  background-size: 200% 200%, 200% 200%, 200% 200%;
  animation: fis-ambient-drift 22s ease-in-out infinite;
}

/* ── 2. ⚡ gentle pulse on hero CTA ───────────────────────────── */
@keyframes fis-bolt-pulse {
  0%, 100% { filter: drop-shadow(0 0 0px rgba(240, 128, 64, 0.0)); }
  50%      { filter: drop-shadow(0 0 8px rgba(240, 128, 64, 0.55)); }
}
.btn-pill-bolt { animation: fis-bolt-pulse 2.6s ease-in-out infinite; }

/* ── 3. Smooth scroll for #anchors ─────────────────────────────
   scroll-margin-top offsets every section target by the floating
   nav pill's clearance so the section heading isn't covered when
   the user lands on it via an anchor click. */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 110px; }

/* ── 4. Nav sizing overrides — bigger + more breathing room ──
   Loads after styles.css, so these win. The original pill was a
   touch cramped at this viewport; bump padding, font, and gap. */
.nav-pill {
  gap: 32px;
  padding: 12px 14px 12px 24px;
}
.nav-brand {
  font-size: 26px;
  padding-right: 8px;
}
.nav-logo { height: 50px; }
.nav-links { gap: 6px; }
.nav-link {
  padding: 11px 20px;
  font-size: 14.5px;
}
.nav-actions { gap: 14px; padding-left: 4px; }
.nav-secondary {
  padding: 11px 20px;
  font-size: 14.5px;
}
.nav-login {
  padding: 11px 22px;
  font-size: 14px;
  gap: 7px;
}
.nav-login-arrow { font-size: 12px; }

@media (max-width: 900px) {
  .nav-pill { gap: 18px; padding: 10px 12px 10px 18px; }
  .nav-link, .nav-secondary { padding: 9px 14px; font-size: 13.5px; }
}

/* ── Nav link underline-grow on hover ───────────────────────── */
.nav-link,
.nav-secondary { position: relative; }
.nav-link::after,
.nav-secondary::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 100%;
  bottom: 6px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  transition: right 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after,
.nav-secondary:hover::after { right: 20px; }
@media (max-width: 900px) {
  .nav-link::after, .nav-secondary::after { left: 14px; }
  .nav-link:hover::after, .nav-secondary:hover::after { right: 14px; }
}

/* ── 5. Universal scroll-reveal ──────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

.reveal-cascade.is-visible > * {
  animation: fis-fade-up-c 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reveal-cascade.is-visible > *:nth-child(1) { animation-delay: 60ms; }
.reveal-cascade.is-visible > *:nth-child(2) { animation-delay: 160ms; }
.reveal-cascade.is-visible > *:nth-child(3) { animation-delay: 260ms; }
.reveal-cascade.is-visible > *:nth-child(4) { animation-delay: 360ms; }
.reveal-cascade.is-visible > *:nth-child(5) { animation-delay: 460ms; }
.reveal-cascade.is-visible > *:nth-child(6) { animation-delay: 560ms; }
@keyframes fis-fade-up-c {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 6. Card hover lifts ─────────────────────────────────────── */
.shot-card,
.audience-col,
.step-card,
.feature-card,
.pricing-card,
.faq-item {
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms ease,
    box-shadow 320ms ease;
  will-change: transform;
}
.shot-card:hover,
.audience-col:hover,
.step-card:hover,
.feature-card:hover,
.pricing-card:hover,
.faq-item:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 241, 236, 0.22);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
}

/* ── 7. Number counters base state ──────────────────────────── */
.numbers .numbers-stat-num,
.about-stat-num { display: inline-block; }

/* ── 8. "What it does" features section — center the heading row.
   The features grid below stays as-is; only the eyebrow + h2 + lede
   centre, matching the rest of the section break treatment. */
.features .section-eyebrow,
.features .section-h2,
.features .section-lede {
  text-align: center;
}
.features .section-lede {
  margin-left: auto;
  margin-right: auto;
}

/* ── 8. Reduced-motion fallback ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  body { animation: none; background-size: auto; }
  .btn-pill-bolt { animation: none; }
  html { scroll-behavior: auto; }
  .reveal-on-scroll,
  .reveal-cascade.is-visible > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: opacity 250ms ease !important;
  }
  .shot-card:hover,
  .audience-col:hover,
  .step-card:hover,
  .feature-card:hover,
  .pricing-card:hover,
  .faq-item:hover { transform: none; }
}

/* ════════════════════════════════════════════════════════════════════
   FEATURE GROUPS (2026-05-28) — sub-divides the 'What it does' section
   into 4 workflow-stage chunks: A) Site Map · B) Custom geometry ·
   C) Studies + AI · D) Pro-forma deliverable. Each group has a gold-
   accented label with a circled letter, then the existing 3-up grid.
   ──────────────────────────────────────────────────────────────── */
.feature-group { margin-top: 56px; }
.feature-group:first-of-type { margin-top: 0; }
.feature-group-label {
  display: flex; align-items: center; gap: 14px;
  font: 600 13px/1.2 var(--sans, 'Outfit', system-ui);
  letter-spacing: -0.005em;
  color: var(--text, #F5F1EC);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245, 241, 236, 0.08);
}
.feature-group-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(232, 200, 122, 0.12);
  border: 1px solid rgba(232, 200, 122, 0.35);
  color: var(--gold, #e8c87a);
  font: 700 13px/1 var(--sans, 'Outfit', system-ui);
  letter-spacing: 0;
  flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
  .feature-group { margin-top: 32px; }
}

/* ════════════════════════════════════════════════════════════════════
   MVP SPOTLIGHT (2026-05-28) — "Generate Optimal Massing" as the
   single most important capability on the page. Sits right after the
   hero. Gold-bordered card with a faux pro-tool button so visitors
   can SEE what they'd click. Then four input chips (lot, zoning,
   guidelines, comparables) that justify why the answer is defensible.
   ──────────────────────────────────────────────────────────────── */
.mvp-spotlight { padding: 24px 0 80px; }
.mvp-card {
  max-width: 980px;
  margin: 0 auto;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(232, 200, 122, 0.10) 0%, transparent 65%),
    rgba(20, 20, 24, 0.5);
  border: 1px solid rgba(232, 200, 122, 0.28);
  border-radius: 24px;
  padding: 56px 56px 44px;
  text-align: center;
  box-shadow:
    0 24px 60px -24px rgba(232, 200, 122, 0.18),
    inset 0 1px 0 rgba(245, 241, 236, 0.04);
}
.mvp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 11.5px/1 var(--sans, 'Outfit', system-ui);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold, #e8c87a);
  margin-bottom: 24px;
}
.mvp-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold, #e8c87a);
  box-shadow: 0 0 8px rgba(232, 200, 122, 0.7);
  animation: fis-bolt-pulse 2.4s ease-in-out infinite;
}
.mvp-headline {
  font-family: var(--sans, 'Outfit', system-ui);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text, #F5F1EC);
  margin: 0 0 22px;
  text-wrap: balance;
}
.mvp-headline em {
  font-family: 'Instrument Serif', 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--gold, #e8c87a);
}
.mvp-sub {
  font: 400 16px/1.65 var(--body-font, 'DM Sans', system-ui);
  color: var(--text-dim, #A0A0AA);
  max-width: 720px;
  margin: 0 auto 36px;
  text-wrap: pretty;
}
.mvp-button-row {
  display: flex; justify-content: center;
  margin-bottom: 40px;
}
/* Faux button — mimics the pro-tool's actual step-4 CTA so the
   visitor sees exactly what they'd click in the tool. Not interactive
   (it's a marketing element, not an entry point). */
.mvp-button-mock {
  display: inline-flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, #F5F1EC 0%, #E8DFD0 100%);
  color: #0C0C0E;
  padding: 14px 22px 14px 16px;
  border-radius: 14px;
  font-family: var(--sans, 'Outfit', system-ui);
  text-align: left;
  box-shadow:
    0 14px 36px -12px rgba(232, 200, 122, 0.4),
    0 2px 0 rgba(245, 241, 236, 0.08) inset,
    0 0 0 1px rgba(232, 200, 122, 0.6);
  cursor: default;
  user-select: none;
  transform: translateY(0);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 280ms ease;
}
.mvp-button-mock:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 48px -12px rgba(232, 200, 122, 0.55),
    0 2px 0 rgba(245, 241, 236, 0.08) inset,
    0 0 0 1px rgba(232, 200, 122, 0.8);
}
.mvp-button-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: #0C0C0E; color: var(--gold, #e8c87a);
  font: 700 14px/1 var(--sans, 'Outfit', system-ui);
}
.mvp-button-bolt {
  font-size: 18px; color: #F08040;
  filter: drop-shadow(0 0 6px rgba(240, 128, 64, 0.5));
}
.mvp-button-text { display: flex; flex-direction: column; gap: 2px; }
.mvp-button-label {
  font-weight: 700; font-size: 15px; letter-spacing: -0.005em;
  color: #0C0C0E;
}
.mvp-button-sub {
  font-weight: 500; font-size: 12px;
  color: rgba(12, 12, 14, 0.6);
}

/* ════════════════════════════════════════════════════════════════════
   LIVE DEMO GIF (2026-05-28) — replaces the faux button mockup.
   The browser frame chrome (mac-style dots + url bar) reinforces
   that the visitor is looking at the real product. Caption beneath
   keeps it honest: "Real screen capture, no edits."
   The orphaned .mvp-button-* rules above are kept as dead code in
   case we want to bring the button back; they don't affect render.
   ──────────────────────────────────────────────────────────────── */
.mvp-demo-row {
  margin: 8px auto 40px;
  max-width: 900px;
}
.mvp-demo-frame {
  margin: 0;
  padding: 0;
}
.mvp-demo-frame .browser-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 14px 28px -12px rgba(232, 200, 122, 0.18),
    0 0 0 1px rgba(245, 241, 236, 0.08);
  background: #0a0a0c;
}
.mvp-demo-frame .browser-bar {
  background: #1a1a1c;
  border-bottom: 1px solid rgba(245, 241, 236, 0.06);
}
.mvp-demo-gif,
.mvp-demo-video {
  display: block;
  width: 100%;
  height: auto;
  background: #0a0a0c;
}
.mvp-demo-video {
  object-fit: contain;
  aspect-ratio: 16 / 9;
}
.mvp-demo-caption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 241, 236, 0.45);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
@media (max-width: 760px) {
  .mvp-demo-row { margin: 4px auto 28px; }
  .mvp-demo-caption { font-size: 11px; }
}

.mvp-inputs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
  text-align: left;
}
@media (max-width: 760px) {
  .mvp-inputs { grid-template-columns: 1fr 1fr; }
  .mvp-card { padding: 40px 28px 32px; }
}
.mvp-input {
  background: rgba(245, 241, 236, 0.03);
  border: 1px solid rgba(245, 241, 236, 0.07);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 220ms ease, background 220ms ease;
}
.mvp-input:hover {
  background: rgba(245, 241, 236, 0.05);
  border-color: rgba(245, 241, 236, 0.14);
}
.mvp-input-icon { font-size: 18px; margin-bottom: 6px; }
.mvp-input-label {
  font: 600 13.5px/1.25 var(--sans, 'Outfit', system-ui);
  color: var(--text, #F5F1EC);
  margin-bottom: 4px;
}
.mvp-input-sub {
  font: 400 12px/1.45 var(--body-font, 'DM Sans', system-ui);
  color: var(--text-dim, #A0A0AA);
}

.mvp-footnote {
  font: 400 13.5px/1.6 var(--body-font, 'DM Sans', system-ui);
  color: var(--text-dim, #A0A0AA);
  max-width: 680px;
  margin: 0 auto;
  text-wrap: pretty;
}
.mvp-footnote em {
  font-style: italic;
  color: var(--text, #F5F1EC);
}

/* ════════════════════════════════════════════════════════════════════
   WIDER CONTAINER + IMAGE-DOMINANT GALLERY CARDS (2026-05-28)
   ─────────────────────────────────────────────────────────────────
   Container bumped from 1200px → 1320px so the page uses more of
   modern wide viewports. Gallery cards now lay out as image-on-top /
   text-below within each card, so the product screenshots get the
   FULL card width (~640px) instead of being squeezed into ~270px.
   ──────────────────────────────────────────────────────────────── */
.container { max-width: 1320px; }

/* Gallery cards: stack image above text, full-width image. */
.gallery .shot-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gallery .shot-card .shot-media {
  order: -1;          /* media first */
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}
.gallery .shot-card .shot-media img,
.gallery .shot-card .shot-media .browser-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.gallery .shot-card .shot-meta {
  padding: 28px 32px 32px;
  width: 100%;
  max-width: none;
}

/* The wide first card stays single-column too — same image-first treatment. */
.gallery .shot-card.shot-card-wide { display: flex; flex-direction: column; }
.gallery .shot-card.shot-card-wide .shot-media,
.gallery .shot-card.shot-card-wide .shot-meta { width: 100%; }

/* Browser-frame chrome inside the card — keep the dots/url bar but
   let the image fill the available width. */
.gallery .browser-frame { margin: 0; border-radius: 12px 12px 0 0; }
.gallery .browser-frame .browser-bar { border-radius: 12px 12px 0 0; }

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .gallery .shot-card .shot-meta { padding: 22px 22px 26px; }
}

/* ════════════════════════════════════════════════════════════════════
   GALLERY IMAGE CLIP FIX (2026-05-28) — the old horizontal layout
   had .shot-card-wide .shot-media { flex: 1.4 } which in the new
   column-direction layout was setting a CONSTRAINED HEIGHT on the
   image container (681px instead of natural 1053px), clipping the
   bottom 35% of the building. Force the media + meta to natural
   size and the .shot-media-3d wrapper to natural height.
   ──────────────────────────────────────────────────────────────── */
.gallery .shot-card-wide .shot-media,
.gallery .shot-card-wide .shot-meta,
.gallery .shot-card .shot-media,
.gallery .shot-card .shot-meta { flex: none; }
.gallery .shot-media-3d {
  height: auto !important;
  overflow: visible !important;
}
.gallery .shot-media-3d img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* ════════════════════════════════════════════════════════════════════
   TEXT-ONLY GALLERY CARDS (2026-05-28) — the proforma + output
   thumbnails were unreadable at card width (5.7:1 and 8.4:1 aspect
   ratios collapsed to ~580x100 each). Removed the screenshots; the
   prose + stats list does the work. Give the text-only cards more
   internal breathing room so they don't look hollow next to the
   big 3D render above them.
   ──────────────────────────────────────────────────────────────── */
.gallery .shot-card.shot-card-textonly {
  display: flex;
  align-items: stretch;
}
.gallery .shot-card.shot-card-textonly .shot-meta {
  padding: 40px 36px 36px;
  width: 100%;
}
.gallery .shot-card.shot-card-textonly .shot-title {
  font-size: 28px;
  line-height: 1.2;
  margin-top: 12px;
  margin-bottom: 16px;
}
.gallery .shot-card.shot-card-textonly .shot-body {
  font-size: 15px;
  line-height: 1.65;
}
.gallery .shot-card.shot-card-textonly .shot-stats {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.gallery .shot-card.shot-card-textonly .shot-stats strong {
  font-size: 30px;
}
@media (max-width: 760px) {
  .gallery .shot-card.shot-card-textonly .shot-meta { padding: 28px 22px 26px; }
  .gallery .shot-card.shot-card-textonly .shot-title { font-size: 22px; }
  .gallery .shot-card.shot-card-textonly .shot-stats strong { font-size: 24px; }
}
