/* Dedicated hero/showcase. Shared header, frame and rail geometry stay in
   homepage-2027.css. The modal is portalled to body while this hero is mounted. */
.f27-homepage .f27-hero.f27-hero-showcase {
  padding-top: clamp(4rem, 6.5vw, 6.25rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  border: 0;
  color: #292c2b;
}
.f27-hero-showcase *, .f27-hero-showcase *::before, .f27-hero-showcase *::after,
.f27-hero-modal *, .f27-hero-modal *::before, .f27-hero-modal *::after { box-sizing: border-box; }
.f27-hero-showcase .f27-hero__intro { text-align: center; }
.f27-homepage .f27-hero-showcase h1 {
  max-width: 19ch;
  margin: 0 auto;
  color: #292c2b;
  font: 400 clamp(2.35rem, 4.4vw, 3.75rem)/1.08 "DM Sans", sans-serif;
  letter-spacing: -.045em;
  text-align: center;
  text-wrap: balance;
}
.f27-hero-showcase h1 > span { color: #818580; }
.f27-hero-showcase .f27-hero__description {
  max-width: 44ch;
  margin: 1.65rem auto 0;
  color: #747a73;
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: balance;
}
.f27-hero-showcase .f27-hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .625rem; margin-top: 2rem; }
.f27-hero-showcase .f27-hero__actions .f27-control { min-height: 2.75rem; padding: .7rem 1.3rem; font-size: .875rem; }
.f27-hero-showcase .f27-hero__demo { min-width: 7.75rem; }
.f27-hero-showcase .f27-hero__pricing { background: var(--f27-surface, #F1F1EC); border-color: var(--f27-surface, #F1F1EC); color: #292c2b; }
.f27-hero-showcase .f27-hero__pricing:hover { background: var(--f27-surface-deep, #EFEFE9); border-color: var(--f27-line, #DEDED7); }
.f27-hero-showcase .f27-hero__reassurance { display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem 1.4rem; max-width: 100%; margin: 1.3rem auto 0; padding: 0; list-style: none; color: #626f66; font-size: .8125rem; line-height: 1.5; }
.f27-hero__reassurance li { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.f27-hero__reassurance svg { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; overflow: visible; stroke: #64916e; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; border-radius: 50%; background: radial-gradient(circle, #dfeccf99 0%, #e6efdc55 45%, transparent 72%); filter: drop-shadow(0 0 4px #b7d09a88); }
.f27-hero-showcase .f27-showcase {
  /* Keep enough original cards beyond each edge even on ultrawide screens. */
  --f27-stage-card: max(min(30rem, 58.5vw), 26vw);
  width: 100%;
  max-width: none;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  font-family: "DM Sans", sans-serif;
}
.f27-showcase__viewport, .f27-hero-modal__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: none;
  overflow-anchor: none;
  overscroll-behavior-x: contain;
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.f27-showcase__viewport { width: 100vw; margin-left: calc(50% - 50vw); }
.f27-showcase__viewport::-webkit-scrollbar, .f27-hero-modal__viewport::-webkit-scrollbar { display: none; }
.f27-showcase__viewport.is-dragging, .f27-hero-modal__viewport.is-dragging { cursor: grabbing; user-select: none; }
.f27-showcase__track, .f27-hero-modal__track { display: flex; gap: 1.5rem; width: max-content; min-width: 100%; padding: .5rem max(1.25rem, calc((100vw - var(--f27-stage-card)) / 2)); }
.f27-showcase__item { width: var(--f27-stage-card); flex: 0 0 auto; scroll-snap-align: center; }
.f27-showcase__card { position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: #626f66; font: 400 .9375rem/1.5 "DM Sans", sans-serif; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.f27-showcase__frame, .f27-hero-modal__frame { display: block; width: 100%; border: 0; border-radius: .5rem; background: var(--f27-surface, #F1F1EC); overflow: hidden; }
.f27-showcase__frame { height: clamp(28.9rem, 61.2svh, 40.8rem); }
.f27-showcase__caption, .f27-hero-modal__caption { position: absolute; bottom: 0; left: 0; display: block; margin: 0; padding: clamp(1.5rem, 3vw, 3rem); text-align: left; }
.f27-showcase__controls { display: flex; justify-content: flex-end; align-items: center; gap: .625rem; margin-top: 1.25rem; color: #747a73; }
.f27-showcase__arrow, .f27-hero-modal__close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 2.25rem; height: 2.25rem; margin: 0; padding: 0; border: 1px solid var(--f27-line, #DEDED7); border-radius: .25rem; background: var(--f27-paper, #F9F9F6); color: #084834; cursor: pointer; transition: background-color .15s; }
.f27-showcase__arrow svg, .f27-hero-modal__close svg { display: block; width: 15px; height: 15px; }
.f27-showcase__arrow:hover, .f27-hero-modal__close:hover { background: var(--f27-surface, #F1F1EC); }
.f27-showcase__arrow:disabled { opacity: .3; cursor: default; }
.f27-showcase__arrow:disabled:hover { background: var(--f27-paper, #F9F9F6); }
.f27-hero-showcase :is(button, a):focus-visible, .f27-hero-modal :is(button, a):focus-visible, .f27-hero-modal:focus-visible { outline: 2px solid #438260; outline-offset: 4px; }
.f27-showcase__card:focus-visible { border-radius: .5rem; }
.f27-hero-modal {
  --f27-detail-card: max(min(48rem, 86vw), 34vw);
  position: fixed;
  inset: 0;
  /* Match the shared consent portal's ceiling; append on open so this active
     dialog also covers background portals that were created after mount. */
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #292c2b;
  font-family: "DM Sans", sans-serif;
  overscroll-behavior: contain;
  isolation: isolate;
}
.f27-hero-modal[hidden] { display: none !important; }
.f27-hero-modal__backdrop { position: absolute; inset: 0; z-index: -1; background: var(--f27-paper, #F9F9F6); }
.f27-hero-modal__heading { position: absolute; top: max(1.75rem, env(safe-area-inset-top)); left: 4.5rem; right: 4.5rem; text-align: center; }
.f27-hero-modal .f27-hero-modal__heading h2 { max-width: none; margin: 0; color: #747a73; font: 400 .875rem/2.25rem "DM Sans", sans-serif; letter-spacing: 0; text-align: center; }
.f27-hero-modal__close { position: absolute; z-index: 4; top: max(1.75rem, env(safe-area-inset-top)); right: max(var(--f27-page-right, 24px), env(safe-area-inset-right)); background: transparent; transition: background-color .4s ease; }
.f27-hero-modal__body { width: 100%; padding-block: 5rem 3rem; }
.f27-hero-modal__track { gap: 1.5rem; padding: .5rem max(1.25rem, calc((100vw - var(--f27-detail-card)) / 2)); }
.f27-hero-modal__slide { position: relative; flex: 0 0 auto; width: var(--f27-detail-card); scroll-snap-align: center; }
.f27-hero-modal__frame { height: min(40rem, calc(100svh - 12rem)); min-height: 8rem; }
.f27-hero-modal__caption { width: 100%; max-width: none; color: #626f66; font: 400 .9375rem/1.5 "DM Sans", sans-serif; }
.f27-hero-modal__controls { margin: 1.5rem var(--f27-page-right, 1.5rem) 0 var(--f27-page-left, 1.5rem); }
.f27-hero-modal__proxy { position: fixed; z-index: 3; max-width: none; margin: 0; pointer-events: none; will-change: transform, width, height; }
.f27-hero__sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 767px) {
  .f27-homepage .f27-hero.f27-hero-showcase { padding-top: 3.75rem; padding-bottom: 2.5rem; }
  .f27-homepage .f27-hero-showcase h1 { font-size: clamp(2rem, 5.7vw, 2.75rem); max-width: 20ch; }
  .f27-hero-showcase .f27-hero__description { max-width: 37ch; margin-top: 1.4rem; font-size: .9375rem; }
  .f27-hero-showcase .f27-hero__actions { margin-top: 1.65rem; }
  .f27-hero-showcase .f27-showcase { --f27-stage-card: min(36rem, 82vw); margin-top: 2.75rem; }
  .f27-showcase__track, .f27-hero-modal__track { gap: 1rem; }
  .f27-showcase__frame { height: clamp(25.5rem, 57.8svh, 35.7rem); }
  .f27-hero-modal { --f27-detail-card: 86vw; }
  .f27-hero-modal__close { top: max(1.25rem, env(safe-area-inset-top)); right: max(var(--f27-page-right, 20px), env(safe-area-inset-right)); }
  .f27-hero-modal__heading { top: max(1.25rem, env(safe-area-inset-top)); }
}
@media (max-width: 479px) {
  .f27-homepage .f27-hero.f27-hero-showcase { padding-top: 3.25rem; }
  .f27-homepage .f27-hero-showcase h1 { font-size: clamp(1.8rem, 7.2vw, 2.2rem); letter-spacing: -.04em; }
  .f27-hero-showcase .f27-hero__reassurance { gap: .6rem 1rem; font-size: .75rem; }
  .f27-showcase__arrow, .f27-hero-modal__close { width: 2.5rem; height: 2.5rem; }
  .f27-hero-modal .f27-hero-modal__heading h2 { line-height: 2.5rem; }
}
@media (max-height: 450px) and (orientation: landscape) {
  .f27-showcase__frame { height: 27.2rem; }
  .f27-hero-modal { --f27-detail-card: 70vw; }
  .f27-hero-modal__frame { height: calc(100svh - 9rem); min-height: 5rem; }
  .f27-hero-modal__body { padding-block: 3.75rem 1rem; }
  .f27-hero-modal__caption { padding: 1rem 1.5rem; }
  .f27-hero-modal__controls { margin-top: .5rem; }
  .f27-hero-modal__heading, .f27-hero-modal__close { top: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .f27-showcase__viewport, .f27-hero-modal__viewport { scroll-behavior: auto; }
  .f27-showcase__arrow, .f27-hero-modal__close { transition: none; }
}

/* The full 480:300 composition sits above measured, ordinary HTML copy. */
.f27-showcase__frame, .f27-hero-modal__frame {
  display: flex; align-items: center; justify-content: center;
  padding: 1rem 1rem var(--f27-copy-height, 12rem);
}
.f27-hero-art { position: relative; display: block; width: 75%; height: 75%; min-height: 0; pointer-events: none; }
.f27-hero-art__poster, .f27-hero-art__player { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.f27-hero-art__poster { object-fit: contain; }
.f27-hero-art__player { opacity: 0; }
.f27-hero-art__player svg { display: block; width: 100%; height: 100%; }
.f27-hero-art[data-ready="true"] .f27-hero-art__player { opacity: 1; }
.f27-hero-art[data-ready="true"] .f27-hero-art__poster { opacity: 0; }
.f27-showcase__caption, .f27-hero-modal__caption { width: 100%; }
.f27-hero-copy__label { display: block; margin-bottom: .8rem; color: #747a73; font: 400 .8125rem/1.5 "DM Sans", sans-serif; }
.f27-showcase__caption .f27-hero-copy__title, .f27-hero-modal .f27-hero-copy__title {
  display: block; max-width: none; margin: 0 0 .65rem; color: #292c2b;
  font: 400 clamp(1.3rem, 2.3vw, 1.85rem)/1.2 "DM Sans", sans-serif;
  letter-spacing: -.025em; text-align: left; text-wrap: pretty;
}
.f27-showcase__caption .f27-hero-copy__description, .f27-hero-modal .f27-hero-copy__description {
  display: block; width: auto; max-width: 45ch; margin: 0; color: #626f66;
  font: 400 .9375rem/1.55 "DM Sans", sans-serif; text-align: left; text-wrap: pretty;
}
/* CSS guards first paint and every intermediate transform, independent of JSON. */
.f27-hero-modal:not([data-state="open"]):not([data-state="revealing"]):not([data-state="closing"]) .f27-hero-modal__caption {
  opacity: 0 !important; visibility: hidden !important;
}
@media (max-width: 479px) {
  .f27-showcase__caption, .f27-hero-modal__caption { padding: 1.5rem; }
  .f27-hero-modal__frame { height: min(40rem, calc(100svh - 11rem)); }
}
@media (max-height: 550px) and (orientation: landscape) {
  .f27-hero-modal__frame { padding: .5rem 45% .5rem .5rem; }
  .f27-hero-modal__caption { left: 55%; width: 45%; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; padding: 1rem; }
  .f27-hero-modal .f27-hero-copy__title { font-size: 1.15rem; }
  .f27-hero-modal .f27-hero-copy__description { font-size: .8125rem; line-height: 1.4; }
  .f27-hero-modal .f27-hero-copy__label { margin-bottom: .4rem; }
}

/* Stripe's modular card uses an expanding surface with fixed-size content.
   Only this decorative layer grows; frame bounds remain the proxy/slider anchor. */
.f27-showcase__frame { position: relative; isolation: isolate; overflow: visible; background: transparent; }
.f27-showcase__frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--f27-surface, #F1F1EC);
  border: 1px solid var(--f27-line, #DEDED7);
  transition: border-color .4s ease, transform .8s cubic-bezier(.165,.84,.44,1);
}
.f27-showcase__caption, .f27-showcase__caption .f27-hero-copy__title { text-align: center; }
.f27-showcase__caption .f27-hero-copy__title { display: flex; align-items: center; justify-content: center; margin-bottom: 0; font-size: clamp(1.125rem, 1.8vw, 1.5rem); }
/* Keep the enlarged icon dimensions independent of the smaller card title. */
.f27-showcase__caption .f27-hero-copy__icon { flex: none; font-size: clamp(1.3rem, 2.3vw, 1.85rem); }
.f27-showcase__caption .f27-hero-copy__description { font-size: .875rem; }
.f27-hero-copy__icon { display: inline-block; width: 1em; height: 1em; margin-right: .35em; vertical-align: -.04em; color: inherit; }
.f27-hero-copy__icon svg { display: block; width: 100%; height: 100%; }
/* Overlay original live artwork only for the last-detail return crossfade. */
.f27-hero-modal__proxy { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
.f27-hero-modal__proxy > .f27-hero-art { grid-area: 1 / 1; }
.f27-showcase__entry {
  position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center;
  width: 2.375rem; height: 2.375rem; border-radius: .25rem;
  color: #084834; pointer-events: none; isolation: isolate;
}
.f27-showcase__entry::before, .f27-showcase__entry::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transition: opacity .6s cubic-bezier(.16,1,.3,1);
}
.f27-showcase__entry::before { background: #084834; opacity: 0; }
.f27-showcase__entry::after { background: var(--f27-paper, #F9F9F6); }
.f27-showcase__entry svg { display: block; width: 20px; height: 20px; }
.f27-showcase__entry path { transition: transform .6s cubic-bezier(.16,1,.3,1), fill .6s cubic-bezier(.16,1,.3,1); }
/* Keep the affordance in the same caption fade phase, including interruptions. */
.f27-showcase[data-f27-showcase-state="closed"] .f27-showcase__card:focus-visible .f27-showcase__entry::before { opacity: 1; }
.f27-showcase[data-f27-showcase-state="closed"] .f27-showcase__card:focus-visible .f27-showcase__entry::after { opacity: 0; }
.f27-showcase[data-f27-showcase-state="closed"] .f27-showcase__card:focus-visible .f27-showcase__entry path { fill: #FCFCF8; }
@media (hover: hover) and (pointer: fine) {
  .f27-showcase[data-f27-showcase-state="closed"] .f27-showcase__card:hover .f27-showcase__frame::before { transform: scale(1.01); border-color: var(--f27-ink, #292c2b); }
  .f27-showcase[data-f27-showcase-state="closed"] .f27-showcase__card:hover .f27-showcase__entry::before { opacity: 1; }
  .f27-showcase[data-f27-showcase-state="closed"] .f27-showcase__card:hover .f27-showcase__entry::after { opacity: 0; }
  .f27-showcase[data-f27-showcase-state="closed"] .f27-showcase__card:hover .f27-showcase__entry path { fill: #FCFCF8; }
  .f27-showcase[data-f27-showcase-state="closed"] .f27-showcase__card:hover .f27-showcase__entry path:first-child { transform: translate(2px,-2px); }
  .f27-showcase[data-f27-showcase-state="closed"] .f27-showcase__card:hover .f27-showcase__entry path:last-child { transform: translate(-2px,2px); }
}
@media (prefers-reduced-motion: reduce) {
  .f27-showcase__frame::before, .f27-showcase__entry::before, .f27-showcase__entry::after, .f27-showcase__entry path, .f27-hero-modal__close { transition: none; }
  .f27-showcase[data-f27-showcase-state="closed"] .f27-showcase__card:hover .f27-showcase__frame::before,
  .f27-showcase[data-f27-showcase-state="closed"] .f27-showcase__card:hover .f27-showcase__entry path { transform: none; }
}

.f27-showcase__card:focus-visible .f27-showcase__frame::before { border-color: var(--f27-ink, #292c2b); }
/* Keep the longest label compact when the narrowest cards wrap it. */
@media (max-width: 350px) {
  .f27-showcase__card[data-f27-step="03"] .f27-hero-copy__title { display: grid; grid-template-columns: auto min-content; text-align: left; }
}

/* Compact touch-device cards keep their captions in view without changing the
   desktop reveal or the independently sized detail modal. */
@media (max-width:1199px) {
  .f27-showcase__frame { height:clamp(13.75rem, calc(100svh - 30rem), var(--f27-stage-card)); }
  .f27-showcase__caption { padding:1.5rem; }
}
